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_generator/Step_0.gml
2019-07-23 20:19:37 -06:00

41 lines
No EOL
629 B
Text

if coingen < coingenlim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -3, obj_bloblehop_coin)
with inst
{
image_xscale=xscale
image_yscale=yscale
}
coingen +=1
}
if ygen >= ylim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), ygen, -2, obj_bloblehop_platform)
with inst
{
image_xscale=xscale
image_yscale=yscale
}
ygen -= global.ystep
}
else
{
inst= instance_create_depth(540,15500,-10, obj_bloblehop_player)
view_set_visible(0, obj_bloblehop_player)
with inst
{
image_xscale = 5
image_yscale = 5
}
instance_destroy()
}
global.ystep += 3