How do I get the sprite to follow my touch on screen

Get help using Construct 2

Post » Sat Aug 20, 2016 5:22 pm

I have been trying to make my player sprite go where I tap the screen. It does walk to the area but doesn't stop and goes off screen. Help!
B
8
S
3
Posts: 8
Reputation: 622

Post » Sat Aug 20, 2016 5:26 pm

When you tap the screen create an invisible sprite at that location and make the player go towards that.
B
45
S
15
G
73
Posts: 2,021
Reputation: 43,424

Post » Sat Aug 20, 2016 5:31 pm

Or just create LastTouchX, LastTouchY as variable, set them on touch and set your sprite to move to that position, Every Tick
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Sat Aug 20, 2016 5:35 pm

Yeah use the variable, then you don't have to use any graphics memory.
B
45
S
15
G
73
Posts: 2,021
Reputation: 43,424


Return to How do I....?

Who is online

Users browsing this forum: imothep85, KTML5 and 8 guests