How do I randomly change a sprite to be mirrored or not?

Get help using Construct 2

Post » Sat Jan 10, 2015 11:52 am

hello i have a problem i ve got an sprite (lets called it A) and it moves vertically in dt seconds, from the top to the bottom of my screen. i put another sprite (lets called it B) at the edge of the window and the thing i want to achieve is when the A is scrolling down and overlapping the B, it will return to the starting position but this time mirrored or not (randomly). i try to put a number variable with 0 and 1 as counter but after the first time when the A actually get mirrored the next times is like the same. if anyone can help it will be very kind of you

https://www.dropbox.com/s/r32lytnqwms0wjb/test.capx?dl=0
B
18
S
3
G
1
Posts: 248
Reputation: 2,353

Post » Sat Jan 10, 2015 2:32 pm

Something like this, maybe? I removed your variable from this, but maybe you still need it for something else, I don't know.

Image
B
31
S
6
G
3
Posts: 22
Reputation: 4,766

Post » Sat Jan 10, 2015 3:25 pm

thanks a lot mate you help me a lot. it works just fine
B
18
S
3
G
1
Posts: 248
Reputation: 2,353


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, ChoosyZerk and 57 guests