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.
flickr.com/photos/33703125@N03/40952928805/in/dateposted-public
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.
flickr.com/photos/33703125@N03/40045140550/in/dateposted-public
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
Develop games in your browser. Powerful, performant & highly capable.
Just ended up giving each spawn point an event based on their UID. Please let me know if there is a more elegant solution.
[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!