Page 1 of 1

How to change sprite position to another sprite through var

PostPosted: Mon Dec 21, 2015 7:39 pm
by RBuster
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.

https://www.dropbox.com/s/e739plthcxues ... .capx?dl=0

Re: How to change sprite position to another sprite through

PostPosted: Mon Dec 21, 2015 7:47 pm
by LittleStain
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..

Re: How to change sprite position to another sprite through

PostPosted: Mon Dec 21, 2015 8:15 pm
by RBuster
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.

Re: How to change sprite position to another sprite through

PostPosted: Mon Dec 21, 2015 8:24 pm
by LittleStain
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..

Re: How to change sprite position to another sprite through

PostPosted: Mon Dec 21, 2015 8:27 pm
by RBuster
I understood now. Thank you.