Hi gamers! Jumping is almost required in all arcade games right? And gamemaker is great for making arcade games! So i figured I should make a tutorial about jumping.(in steps)
1.)make two sprites the obj_guy & obj_land
2.) under obj_guy choose the create event: Set gravity
gravity : .5
direction : 270
2A.)the last action for this event is a variable: Set variable
variable: jump
value : 0
3.)the second event is "press (jump button)"
test variable:
if var jump is equal to 0
Start of block
set vertical speed to -10
Set var jump to 1
End of block
if var jump is equal to 1
Start of block
exit this event
end of block
should look like that.
4.) now the last event is collision with the obj_land
set vertical speed to 0
set var jump to 0
That's what you need to know about jumping. I'm sure thereare multiple other ways, but this is the easiest i've seen by far.
Hope you enjoyed this post and
Happy Gaming!
No comments:
Post a Comment