How do I mirror objects when dragging

Get help using Construct 2

Post » Thu Mar 19, 2015 5:12 pm

Hello folks,

This might be really simple but I can't seem to work it out. I have an object on the screen with the drag&drop behaviour.
I want to be able to flip (mirror) it when I drag it to the right, and set it back facing left when I drag it to the left.
B
5
Posts: 15
Reputation: 655

Post » Thu Mar 19, 2015 9:28 pm

Create a variable where you set Sprite.X value "On Drag Start".
Then check during "Is draggin" if Sprite.X is larger or smaller and set the Sprite to Flipped or not accordingly.
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Mon Mar 23, 2015 7:41 pm

That works, thanks dude!
B
5
Posts: 15
Reputation: 655


Return to How do I....?

Who is online

Users browsing this forum: MathNook and 45 guests