Touch (Negative and Positive) Value

Discussion and feedback on Construct 2

Post » Thu Oct 29, 2015 2:26 pm

Hi.

I busy make a HTML 5 game that character can move to 4 direction when touch is true. so I want check if touch value is Positive, change animation to right and if touch value is Negative, change animation to Left. But I don't know how can check Negative or Positive Touch.

I used this condition for check Touch Position but good not work.

if Mouse.X - LayoutWidth/2 > 0 then Set Animation "Right"

Please Guide me to solve this problem.

Thanks a Lot.
B
8
S
1
Posts: 30
Reputation: 580

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests