Spawning actors based on another actor?
SoxProcs
Member Posts: 11
In my game, I have stars spawning based on a timer in random positions along the ground. What I want to do is to have only one star in the scene at a time, so once the actor collects the star, a new one will spawn right away, but in a new random location (very similar to classic SNAKE games)
Can someone help me out?
Can someone help me out?
Answers
-Make an boolean attribute in the 'Game' page
-Have a rule that if the character hits the star, he changes the attribute to 'True'
-If the attribute is true, spawn a new star in a random place
-Set a timer to reset the boolean attribute to 'False' after:
-A new star is spawned because the attribute was true
-Set a timer to reset the boolean attribute to 'False' after:
-A new star is spawned because the attribute was true
Once I get to this step I become confused on what you mean, could you maybe help clarify that?
•After 0.1 seconds,
•Change attribute '(whatever your attribute's name is here)' to false.
In the star, put a rule that if the attribute is true, spawn a new star in a random location.
Does this make sense? Sorry, I was a little unclear.