I have 4 instances of a sprite on the left side of my layout. I want them to all spawn an object at the beginning of the level and then each randomly spawn a new object at random intervals.
I also have catapults that will all move with their turret functions and will play their animations but multiple instances will not spawn bullets if another is spawning them. I feel like these two issues are probably related and I feel like I'm missing something important.
Figured out the catapults. Gave them instance variables that determine whether or not they can fire. Perhaps the same thing will help the spawn points
Just ended up giving each spawn point an event based on their UID. Please let me know if there is a more elegant solution.
Develop games in your browser. Powerful, performant & highly capable.
[quote:2e3sdtht]Please let me know if there is a more elegant solution.
There is a more elegant solution.
[quote:2zpv2dlp]There is a more elegant solution.
ohhh, that's nice. I like. Thanks!