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_generator/Step_0.gml
rgrzanic 5aa633b041 blobleshoot with trampolines, code for balloons and pools too
blobleshoot now has trampolines which bounch the bloble higher , they are also randomly generated.
2019-07-25 15:32:51 -06:00

37 lines
No EOL
595 B
Text

if gen_balloon < gen_balloon_limit
{
inst = instance_create_depth((irandom_range(2000, xlim)), 100, -3, obj_blobleshoot_balloon)
{
}
gen_balloon +=1
}
if gen_pool < gen_pool_limit
{
inst = instance_create_depth((irandom_range(2000, xlim)), 100, -3, obj_blobleshoot_pool)
{
}
gen_pool +=1
}
if gen_trampoline < gen_trampoline_limit
{
inst = instance_create_depth((irandom_range(2000, xlim)), 4904, -3, obj_blobleshoot_trampoline)
{
with inst
{
if (place_meeting(x,y,obj_blobleshoot_trampoline))
{
instance_destroy()
}
}
}
gen_trampoline +=1
}