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
Ryan 8bd86a28b1 blobleshoot powerbar added, difficulty fixed
powerbar adds chalange to the blobleshoot game, difficulty bug fixed lol
2019-07-27 21:20:59 -06:00

60 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 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()
}
if cloudgen < cloudgenlim
{
inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -1, 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
}
global.ystep += 1