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
rgrzanic f880ab3d71 small fix for bloblehop
harder, increased gravity
2019-07-18 15:11:33 -06:00

20 lines
No EOL
361 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
inst = instance_nearest(x, y, obj_bloblehop_platform)
if vsp >0
{
if (place_meeting(x,y+1,obj_bloblehop_platform)) || (place_meeting(x,y-1,obj_bloblehop_platform)){ vsp = -jumpspeed}
}
y += vsp