Moving Sprites with Touch
AllDayGaming
Member Posts: 10
Hi.
So I'm having problems with moving my animated image (the player), when the screen is touched either on the left or right side, with actions LeftTouch and RightTouch. I've been trying to make it work since yesterday and no luck.
I have my character placed where it should be and LeftTouch and RightTouch actions placed respectively on screen, to "listen" for the touches. I have the RightTouch action rule setup like this: Listen for touch > if touch is pressed > move character right > and play walking animation.
Seems to me that the above should have worked but it hasn't.
The touch actors are placed in front of all other actors or objects, so I'm not sure why it doesn't work.
Any help would be great.
So I'm having problems with moving my animated image (the player), when the screen is touched either on the left or right side, with actions LeftTouch and RightTouch. I've been trying to make it work since yesterday and no luck.
I have my character placed where it should be and LeftTouch and RightTouch actions placed respectively on screen, to "listen" for the touches. I have the RightTouch action rule setup like this: Listen for touch > if touch is pressed > move character right > and play walking animation.
Seems to me that the above should have worked but it hasn't.
The touch actors are placed in front of all other actors or objects, so I'm not sure why it doesn't work.
Any help would be great.