tl:dr: HELP how to make a playermovement.cs that include a jump similar to GODS, with a small delay and an animation before actual jump.
I’m trying to play around with GODS from the Bitmap Brothers.
I have all spritesheets, tiles & co from the github link below.
I’d like to make it as close as it was. For example, when you jump, there is a short delay before jumping and then an animation before the player leaves the ground (actually two sprites). In all the guides & help I saw, I don’t find how to properly handle a launching phase of the jump. I see how to handle the raising phase and descending phase of the jump, but not the “delay berfore jump”.
In addition more generally for those who know, I’d like a bit of asvide: using the rigidbody2D, it applies physics… whereas I don’t want the sprite to “accelerate” when moving from idle.
The game has been redone in java GitHub - jotd666/gods-deluxe, code is accessible and whern you look into it, it is really re-done from scratch with lots of tweaks to control.
Since you have access to a functioning Java version above it should be quite easy for you to get started.
You may want to also get a good Java debugger and start stepping through the actual running code.
Otherwise, using a float is great for a short little timer before the leap happens, or else you could encode into an animation directly.
I would begin first with this one-step-at-a-time process… it really works!!
Imphenzia: How Did I Learn To Make Games:
The purpose of the forum is to assist people who are ready to learn by doing, and who are unafraid to get their hands dirty learning how to code, particularly in the context of Unity3D.
This assumes you have at least written and studied some code and have run into some kind of issue.
If you haven’t even started yet, go check out some Youtube videos for whatever game design you have in mind. There are already many examples of the individual parts and concepts involved, as there is nothing truly new under the sun.
If you just want someone to do it for you, you need go to one of these places:
Thanks for this automatic reply written in 2 min !
Maybe you should revise this as I’m no game developper, but a hobbyist trying to put a bit of code with the “new” technologies. Your comment applies for sure on some people around though.
I am not expecting someone to come with the code I ask, but more answers from experienced people telling me wether using unity can be tweaked down to a pixel perfect solution or if all scripts have to bve done from start developing my own physics of the game.
Having searched a lot of unity forums with some keywords like bitmap brothers, control & co. I didn’t find any yet. I’d likle to get some philosophical advice on how to make it happen, not only seeing a jump as soon as you press jump key, which results in a sensation of light jump with no mass from the player.
Neither was Imphenzia when he started the above video, or so he says.
Did you read what I wrote above? I wrote:
Option 1: Use a float timer to implement a small delay.
Option 2: Or put it in the animation: make the animation remain still (or crouch or whatever) for a moment before leaping.
It stands to reason that until you HAVE a player controller with a jump working, you cannot possibly hope to reason about “gee, how would I delay my jump” further than knowing that delays CAN be done in game programming and are done ALL the time through many different ways, and also through the two ways above, either of which would work.
The details matter. The implementation matters. And YOU are going to be the one doing that. Not us.