How can I limit the area and the speed of spawning of an actor?
honaccountpk@yahoo.com
Member Posts: 41
I want to limit random spawning of my actors within the frame of my game user interface area.
But I dunno how to limit it.
Comments
Just place your limits into the random range.
So for example x = random (200,600) . . . . y = random (200,400).
I just want to limit it within a specific area.
1. I need to limit it because I don't want them to overlap most of the time.
2. I need to limit it also because of other gui controls during gameplay.
@Socks explained how to do this. Do you have a question about what he wrote?
Preventing overlap is more complex than limiting spawning to a certain area. I guess we'd have to know more about what you want to have happen. A screenshot or sketch of the game is really helpful.
This would be accomplished with the x/y range of the spawn behavior, as @Socks suggested.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User