I need to change the sprite position to another position that has a specific variable value. I built a simple example.
*** I would like something as I coded.
Thanks in advance for any help.
I'm not really sure what you want to do, but because event 7 is a subevent of event 6, it can never be true..
A the variable turn can't be 1 and 2 at the same time..
I need to move the sprite2, when it collide with the sprite with the turn variable = 1, to the same position of sprite that has the turn variable =2. In the event 6 I thought that I'm checking if the sprite has a variable with value 1.
Then you should first pick all sprite instances before trying to pick one with a different variable..
As you should know, a subevent continues with the sprites picked in the event above..
Develop games in your browser. Powerful, performant & highly capable.
I understood now. Thank you.