Problems with moveto
Hello everyone,
In my game i have for actors on the same line in different X positions. I've made an integer atribute that increases itself of 1 every second and i told the game to move those actor in different position after when my atribute becomes 30. Actually i want this actors to switch swap positions.
It's something like this :
Rule ---> When Atribute game.gameplay >30
Timer every 5 seconds Change atribute game.actorposition --Random(1,16)
I gave each 16 position and so when the atribute random position is 1 my actor are in a certain position, when is 2 they are in another one and so on. The problem is that sometimes one actors overlaps anotherone and never come back to it's position. I've already controlled all the coordinates of each actor and they are always different so i realy don't know where's the problem.
In my game i have for actors on the same line in different X positions. I've made an integer atribute that increases itself of 1 every second and i told the game to move those actor in different position after when my atribute becomes 30. Actually i want this actors to switch swap positions.
It's something like this :
Rule ---> When Atribute game.gameplay >30
Timer every 5 seconds Change atribute game.actorposition --Random(1,16)
I gave each 16 position and so when the atribute random position is 1 my actor are in a certain position, when is 2 they are in another one and so on. The problem is that sometimes one actors overlaps anotherone and never come back to it's position. I've already controlled all the coordinates of each actor and they are always different so i realy don't know where's the problem.
Comments
mail@applaudmobile.co.uk
When atribute game.gameplay = 1 Moveto
When atribute game.gameplay=2 Moveto
and so on.
The strange thing is that i've had this problem since i gave actors a collide behavior. Yesturday i had one actor randomly running offscreen, so i placed 2 walls and gave each actor a colide behavior to avoid this problem. From that moment i've had the swaping problem. Just a few minutes ago i've deleted the walls and now everything works fine, but now i have the problem of the actor that randomly runs off screen again