(4.5.9) Adventure Module: Mystic Origins / Searches and Star Tropics Jumping

TolerantX

Active member
Adventure Module: Mystic Origins / Searches and Star Tropics Jumping

I gave it a bit of thought like an invincible state and animation change but Joe said something about the xyz or something as well does anyone know how we can go about adding "jumping" to adventure games? This isn't for my current game, just a general question I'm sure others are curious about. Has anyone tried this?
 

SciNEStist

Well-known member
The way I would do it is by adding object variables "Object_z_hi" and "Object_z_lo"
when jumping, you would increase those variables up to a height, then decrease them back, you could re-use some metroidvania jumping code for that.
you would then use those variables to offset the drawing of the objects in the drawscript (add them to the y position of the sprites)
for collisions, you would have to add a check of the Z differences in the collision checks (if selfobject z position is too different from otherobject z position, then don't collide)

that alone would get the jumping working, but if you want to be able to jump up and down from different map heights, it would require a bit more work as well.
 
Top Bottom