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_blobleshoot_player/Step_0.gml
2019-07-25 21:27:31 -06:00

33 lines
No EOL
675 B
Text

if (place_meeting(x,y-1+launchspeedy,obj_blobleshoot_grass)) || (place_meeting(x,y+1+launchspeedy,obj_blobleshoot_grass))
{
launchspeedx = (launchspeedx *.8)
launchspeedy = (-launchspeedy * .8)
}
if (place_meeting(x,y+launchspeedy,obj_blobleshoot_trampoline)) || (place_meeting(x,y+launchspeedy,obj_blobleshoot_trampoline))
{
launchspeedy = ((-launchspeedy * 1.2) - 5)
launchspeedx = (launchspeedx * 1.1)
}
if launchspeedx > 0 && launchspeedx < 1
{
global.roomset = rm_Gameover;
instance_create_depth(1,1,-1, obj_fade)
}
//if launchspeedy > 0 && launchspeedy < 1
//{
// launchspeedy = 0
//}
launchspeedy = (launchspeedy + .5)
x += launchspeedx
y += launchspeedy