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
3
Posts: 5
Reputation: 585

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
3
Posts: 5
Reputation: 585


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests