This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
Blobledoodes/objects/obj_bloblehop_player/Step_0.gml
Ryan 73075df678 boblehop almost done, with death and gameover screen
added gameover screen and death to boblehop game
2019-07-17 21:17:45 -06:00

16 lines
No EOL
299 B
Text

if vsp < maxvsp
{
vsp = (vsp + grav)
}
if (place_meeting(x+1+hsp,y,obj_bloblehop_wall)) || (place_meeting(x-1+hsp,y,obj_bloblehop_wall)) hsp = 0
x += hsp
if vsp >0
{
if (place_meeting(x,y+1,obj_bloblehop_platform)) || (place_meeting(x,y-1,obj_bloblehop_platform)){ vsp = -jumpspeed}
}
y += vsp