How do I make different movement for the same object

Get help using Construct 2

Post » Mon Dec 08, 2014 9:47 pm

Hello,
I have an object (Object1). I add a instance variable to this object: move= 0. When move is = 1, the object1 simulate platform right. When I am overlapping another sprite (active), the object1 set value for move=1, so it move to right.
Ok, I copy the object1 so there are two object1 and two "active" but I want that when I am overlapping the "active" sprite, only object1 (the original and not the copy) start moving right, and when I am overlapping the copy of the "active" sprite, start moving the another object1.
I hope I explained :?
Sorry for my english, and thank you!
B
7
S
1
Posts: 28
Reputation: 652

Post » Mon Dec 08, 2014 10:53 pm

So just create a variable called 'original' and set it to 1 on the one you want to move and 0 on the ones you don't. Then before you do the moved actions check if 'original' is set to 1.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542


Return to How do I....?

Who is online

Users browsing this forum: corpvs2 and 21 guests