hey ya’all so i’ve been trying for about 4 hours now to make a top down jump and i searched it up on the forums too but i only found ones on isometric or semi top down ones so i tried making a simple one.
at first i wanted to have platforming with different heights but i can rlly figure that out but i did find one to just do a simple jump
so i have my character controller(i think it's called a fsm or smth) and actual
sprite differently along with a separate shadow.
what i did was
- player space key pressed
(variable)playerCanJump = true
trigger once - playerYbeforejump = player.Y()
trigger once - tween player Y position to playerY()-32(put your jump height
here) tween name “GoUp”
trigger once - change (variable)PlayerCanjump = false
chnage (variable)IsJumping = true
*tween “GoUp” is finished playing
trigger once - tween player Y position to playerY()+32(put the same jump height here) tween name “GoDown”
*tween “GoDown” if finished playing
trigger once - change (variable)IsJumping = false
trigger once - change (variable)PlayerCanJump = true
*one of these conditions is true(‘or’ action )
player tween “GoUP” is playing - (Only one condition) playerShadow Xposition = playerX(), Yposition = PlayerYbefore jump
player tween “GoDown” is playing -
Player(add your movement controls)
at the end:
no condition - change playershadow Xposition = playerX
change playershadow Yposition = playerY
(btw remember to set the IsJumping to false and PlayerCanJump to true)
i kinda wrote a lot srry for no screenshots(will give soon) and this jump allows you to move left and right but not up or down while jumping!
thanks of you read all this way : ) i just made this post cus why not