possible bug with spawning actors (never mind)

jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
edited May 2012 in Tech Support
Not sure if this is a bug, but I created a pretty simple loop:

timer every .1 seconds:
-when actor loopCounter is < 27
--spawn actor 1
--x location = random 100, 900, y location is 100,600

-change attribute loopCounter to loopCounter + 1'

this spawns the actors but never increments the loopCounter. if i move the loopCounter to before the spawn, it works as expected, but exits the loop 1 spawn too early. anyone else see this? This is with .9.92

Answers

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    edited May 2012
    This is what fails. if i swap the change attribute and spawn, it works.

    image
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Very weird. I redid it twice

    Oh well operator error.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    figure out what I did wrong. on the actor I was spawning I had a rule that was pulling an x and y value from a table with an attribute supplying the row number. since i was spawning these actors, it was defaulting to 0, which was breaking that attribute. once I put a random number in there, it worked fine.
Sign In or Register to comment.