Move to + random number

tutysestutyses Member Posts: 134
edited November -1 in Working with GS (Mac)
hello, i have an actor who follow the main character (with move to behavior), each time this actor dies, a randon number is generated, so this actor gets recicled , and each time he dies, he show up in differents parts of the map
the problem is that after a few minutes its start to get buggy, and the actor go to random positions instead of following the actor, i read in the forum that the move to behavior is buggy, what should i use instead of move to? interpolate and accelerate are not an option, because the actor should move with the same speed

Comments

  • tutysestutyses Member Posts: 134
    you sure? this is exactly the same case http://gamesalad.com/forums/topic.php?id=16441 but i dont understand what he did
  • POMPOM Member Posts: 2,599
    Make sure both actors are on a "scrollable" layers..

    Roy.
  • tutysestutyses Member Posts: 134
    no, the "zombie" actor always follow the "X" actor, when the zombie life get to 0 it create a randon number from 1 to 4, if its 1 it change self position x to 0 and Y to random (0,640), this will make the zombie "spawn" in the left side in the screen, the other numbers do the same with the other 3 other sides
Sign In or Register to comment.