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
rgrzanic 4702e9c906 clouds added, code simplified, bug fixed?
bug possibly fixed where the blobleshoot flys through
2019-07-25 16:27:12 -06:00

32 lines
No EOL
639 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)
}
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