any ideas for spawning actors and running out of room in confined space
gooner
Lancaster, PAMember Posts: 135
My actor can spawn multiple actors, those actors can spawn multiple actors, etc.
I have "gravity" and constraining walls, so for the most part they settle at the bottom of the screen. If any of those actors spawn, they start to overlap, even with collision and bounciness (although set very low). So you get a packed row across the bottom of the screen and eventually the overlap causes problems because it's not clear what actor you are actually clicking.
Is there any way to prevent overlap, or should I look for some way to prevent so many collecting at the bottom?
Thanks
Comments
There is a new option in the latest update to do 'better collisions' have you tried turing that on for your actors?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I tried 'better collisions' but unfortunately it really messed up my loop behaviors (they weren't completing properly like when collisions were normal). I ended up using circle collision shape and now the actors sort it out and push themselves up when it gets crowded. They don't wedge together and start overlapping like the boxes. A workaround, but it works and will do for now. Thanks again for the feedback.
Glad you got something acceptable working.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page