Object Flips/Mirrors, but not supposed to initially.

Get help using Construct 2

Post » Thu Feb 18, 2016 3:06 pm

The object should face left or right depending where the user clicks/touches.

Object.X < Touch.X = Not Mirrored
Object.X > Touch.X = Mirrored

The object is facing right (Not Mirrored) by default, but when the game is loaded the object faces left (Mirrored) and automatically reverts back to left even after facing right.

Using the Mouse function the code below works fine, but switching to the Touch function the error mentioned above happens.

Object.X < Mouse.X = Not Mirrored
Object.X > Mouse.X = Mirrored

Does anyone have insight as to why this happens? This is the first time I am trying to use the Touch function.

Thank you,

Drew
B
8
S
1
Posts: 14
Reputation: 810

Post » Thu Feb 18, 2016 8:41 pm

Touch.X will return 0 when not touching.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,610


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests