Swiping Menu for ios : touch button problem
famekrafts
Member, BASIC Posts: 834
Ok I checked out the Multi menu video on youtube by ThsirtBooth.
It was done with mouse, I replicated it for IPAD but the problem I am having is with touch.
When I touch the screen (touch pressed), the drag actor should go to the position of the touch but that is not happening, simply because there is no proper touch expression command for that.
In the the video it was done for mouse position x, which is there but for touches there is Touch 1 expression which isn't the same as event "touch" in the when attribute condition.
How do I make the sliding menu for IOS?
Can anyone help?
Here is image
https://pbs.twimg.com/media/A2aShvpCYAAkk7A.jpg
It was done with mouse, I replicated it for IPAD but the problem I am having is with touch.
When I touch the screen (touch pressed), the drag actor should go to the position of the touch but that is not happening, simply because there is no proper touch expression command for that.
In the the video it was done for mouse position x, which is there but for touches there is Touch 1 expression which isn't the same as event "touch" in the when attribute condition.
How do I make the sliding menu for IOS?
Can anyone help?
Here is image
https://pbs.twimg.com/media/A2aShvpCYAAkk7A.jpg
Comments
also the size of the actor is huge 4096 width.
I will still go for that small size if the touch event works.
How I can I use touch as event but there is no expression for the touch position?
Mouse.position.x is the same as "touch1.x" isn't it?
They should be interchangeable. I.E. you can use mouse.position.x to mean a touch's X.
@Sparkyidr are you sure about it? used it any of your ios games?
It will be messy if I have to change it later.
Should I use event also as mouse pressed?