How do I make my char jump to a spot without going ahead?

Get help using Construct 2

Post » Thu Jul 17, 2014 2:53 pm

I made a mode in my game that scrolls by and I want the player to be able to jump to the closest spot to him without jumping to a far away spot.

What the game looks like to give you an idea of what I want --http://imgur.com/0MXGXAP,6RjGwGX#0--

Here is my code for jumping to a spot atm --http://imgur.com/0MXGXAP,6RjGwGX#1--

Ignore the Y>700 because that is from another mode and will get changed once I figure out how to get the player from being able to si

I made the spots numbered based on where they are located but I want to make the player be forced to jump to the closest spot instead of being able to jump to the spot that is furthest away from him.
B
10
S
4
Posts: 56
Reputation: 919

Post » Thu Jul 17, 2014 7:06 pm

Have an instance boolean that is only true for the next spot, but false to all other spots.

I'm not sure what's the exact behavior you're expecting. Maybe if you share the capx I can help you better...
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012


Return to How do I....?

Who is online

Users browsing this forum: ladjuric, plinkie, Syazanie Amirin and 4 guests