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

57 lines
No EOL
1 KiB
Text

if coingen < coingenlim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -3, obj_bloblehop_coin)
coingen +=1
}
if cloudgen < cloudgenlim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -2, obj_bloblehop_cloud)
with inst
{
if (place_meeting(x,y,obj_bloblehop_cloud))
{
instance_destroy()
}
if (place_meeting(x,y,obj_bloblehop_platform))
{
instance_destroy()
}
if (place_meeting(x,y,obj_bloblehop_platformboost))
{
instance_destroy()
}
}
cloudgen +=1
}
if ygen >= ylim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), ygen, -2, obj_bloblehop_platform)
with inst
{
if irandom_range(1,30) = 4
{
inst = instance_create_depth(x,y,-2,obj_bloblehop_platformboost)
instance_destroy()
}
}
ygen -= global.ystep
}
else
{
inst= instance_create_depth(540,15500,-10, obj_bloblehop_player)
view_set_visible(0, obj_bloblehop_player)
instance_destroy()
}
global.ystep += 1