Jump towards position.

Get help using Construct 2

Post » Fri Feb 08, 2013 1:59 pm

Hey Guys,

I am working on a touch based platform game and I am trying to work out an effective way to get the player to jump towards a tap on the screen (Touch.x and Touch.Y)

Any ideas?

Thanks, Dan.
B
8
S
2
Posts: 75
Reputation: 1,125

Post » Fri Feb 08, 2013 2:55 pm

Are you using the platform behavior?

If you are, it would probably be something like:

+If player touched the screen
| And screen area that was touched is > than player.X
- Set Player.VectorX to + 100 (tihs would make him go right)
- player.platform movement jump (or player.vectorY - 100) (which is up)
ELSE
- Same thing but with - 100
- Same thing (- 100)

Not sure if this would work, but I think it would.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 28 guests