Isometric game with platform height and jumping/platforming

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By blurymind
:warning: Old Version Published before Godot 3 was released.

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

here is an example of what i mean

also

This might be related as feature requests go:
Per tile z-index in tilemap · Issue #10321 · godotengine/godot · GitHub

blurymind | 2017-08-27 10:40

:bust_in_silhouette: Reply From: eons

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.

:bust_in_silhouette: Reply From: Topaz’ Reality

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.