PlayMaker Help & Tips > PlayMaker Help

half side touch to control character invisible gui?

(1/3) > >>

dbsrb43:
Like the famous game line runner, I want to make my character jump when I touch the right half of the screen. And slide on the left side.... How do i do this? invisible gui??
How can I make invisible gui?? New to these stuff
Alternatives would be great.
Thanks
//www.youtube.com/watch?v=05vEaheWVss

escpodgames:
Easy - Use touch position

Get touch info Action will give you the X and Y position of the touch (normalized)
(the bottom left is 0,0 and top right 1,1)

Float compare - if touch x is greater than 0.5 its a right hand side touch if its less its a left hand side touch.

Hope that makes sence, I can show an example if that helps.

dbsrb43:
I'm having a hard time using floats....
maybe, can u make a really simple scene with this??
action could be really basic. For example Umm.. if left side is touched the cube deletes...
I would be able to do it myself from there on..
my email is dbsrb43@gmail.com
If u can screen capture some steps and send it to me, that would be awesome
Thanks in advance

escpodgames:
Here ya go -



Uploaded with ImageShack.us

dbsrb43:
Thanks, get the idea.. but i've made the variable called Touch_x and did what the screencap told me to do....
But nothing happens in mobile.. not getting deleted??
What type of Touch_x has to be?? (in the variable drop down thingy, when created a variable, the drop down to change the type.??
thanks

Navigation

[0] Message Index

[#] Next page

Go to full version