0 votes

Does anyone have an idea as to how to do this in godot?

here is an example of what i mean
https://youtu.be/HBswql-rS7I?t=2m12s

also
https://youtu.be/2PRFSPWmneE?t=55m2s

asked Aug 26, 2017 in Engine by blurymind (85 points)

This might be related as feature requests go:
https://github.com/godotengine/godot/issues/10321

2 Answers

0 votes

The jump can be faked by a height variable you can control, depending the design the value can just affect the sprite position and change the collision control to a special state.

While jumping, it should ignore all collision of objects in a level, and start colliding with another level at specific height value if apply, collision body may need to adjust position when stepping on another level.


The way you plan to design the levels will affect the method used for jumping and vice versa, try to make the jumping simple even if levels get too blocky because it may be better for the player.

answered Aug 26, 2017 by eons (6,106 points)
0 votes

Now, this might NOT be a valid solution, but you can just alter the height of the SPRITE itself by using the AnimationPlayer node. Goes like this:

  • Trigger a frame
  • Go higher
  • Trigger a frame
  • Go higher
  • Trigger a frame
  • Go higher
  • Trigger a frame
  • Go lower
  • Trigger a frame
  • Go lower
  • Trigger a frame
  • Go lower

This is, currently, the only way to have the Y act as an UP and DOWN and have JUMP at the same time.

answered Jan 13 by Topaz' Reality (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.