How do I create top down ball movement?

Get help using Construct 2

Post » Thu Oct 13, 2016 1:32 am

When the player touches the ball, I want the ball to move in the direction the player moved toward the ball from.

All the examples I've found use the physics behavior, which would work if I was making something like pinball, but in my case, it'll just fall off the screen.

When I say top down, I'm talking about the style Pokemon and Zelda are in, a birds eye view! Any ideas? I have no idea how to go about this.
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Thu Oct 13, 2016 2:17 am

Sorry, not understanding when you say: "move the ball from"...

Do you want the ball to move in the direction of swipe?

You could try bullet and touch.X/ touch.Y

Is touching - enable bullet.
Is touching (inverted) bullet dissbled.

You'll have to mess around with bullet behavior to get it right.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Thu Oct 13, 2016 2:29 am

My bad! I meant that there's a sprite which the player controls. When they come into contact with the ball sprite, the ball should go in the direction they moved into the ball from. Sorry about that.
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Thu Oct 13, 2016 12:19 pm

B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Thu Oct 13, 2016 8:37 pm

I'm not using touch controls, but I'll see if I can apply these methods to what I'm trying to do. Still open to solutions!
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Thu Oct 13, 2016 9:54 pm

The first method doesn't have anything to do with my issue, and I can't seem to apply the second method, even though it's exactly what I want. (just without the touch part).
B
24
S
10
G
1
Posts: 153
Reputation: 2,660


Return to How do I....?

Who is online

Users browsing this forum: Cub3D, David181, yiuyiu6666 and 21 guests