So, Basically i want to cut the screen into 2 halts, if i touch the right half the player moves right, if i touch the left half the player moves left.
here is what i've done:
[State 1]
1-Touch Event >
[State 2 ]
2-Get Touch info > Store the X position >
3-Screen to World point > use the stored variable above as the "Screen X" >
4-Random Float > The space from centre of the screen to the far left as minimum & maxim > Store in new variable >
5-Float Compare > compare the touched variable with the random variable > if Equals then send event
[State 3]
6- Translate > finished go back to [State 1 - Touch Event ]
My problem is, it doesn't work at all