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

54 lines
No EOL
919 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
}
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
}