How to change sprite position to another sprite through var

Get help using Construct 2

Post » Mon Dec 21, 2015 7:39 pm

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
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Mon Dec 21, 2015 7:47 pm

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 told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 21, 2015 8:15 pm

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.
Last edited by RBuster on Mon Dec 21, 2015 8:24 pm, edited 1 time in total.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Mon Dec 21, 2015 8:24 pm

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..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 21, 2015 8:27 pm

I understood now. Thank you.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060


Return to How do I....?

Who is online

Users browsing this forum: Kyatric, warmty and 30 guests