57 lines
No EOL
1 KiB
Text
57 lines
No EOL
1 KiB
Text
|
|
|
|
if gen_balloon < gen_balloon_limit
|
|
{
|
|
inst = instance_create_depth((irandom_range(2000, xlim)), (irandom_range(gen_balloon_lowlim, gen_balloon_highlim)), -2, obj_blobleshoot_balloon)
|
|
with inst
|
|
{
|
|
if (place_meeting(x,y,obj_blobleshoot_balloon))
|
|
{
|
|
instance_destroy()
|
|
}
|
|
}
|
|
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
|
|
}
|
|
|
|
|
|
|
|
if gen_coin < gen_coin_limit
|
|
{
|
|
inst = instance_create_depth((irandom_range(2000, xlim)), (irandom_range(0, ylim)), -3, obj_bloblehop_coin)
|
|
|
|
gen_coin +=1
|
|
}
|
|
|
|
|
|
|
|
if gen_cloud < gen_cloud_limit
|
|
{
|
|
inst = instance_create_depth((irandom_range(2000, xlim)), (irandom_range(0, ylim)), -3, obj_bloblehop_cloud)
|
|
|
|
gen_cloud +=1
|
|
} |