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
7
S
2
Posts: 75
Reputation: 1,100

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
106
S
35
G
36
Posts: 792
Reputation: 24,703


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests