# Hills and ramps

Get help using Construct 2

### » Sat Jun 02, 2012 2:21 pm

How do I.... top viewed hill or ramp?

Like as Minigolf game

Maybe using Is overlapping -condition, but how (angles and speeds)?Jacke2012-06-02 16:12:54
B
10
S
4
Posts: 8
Reputation: 2,313

### » Fri Jun 08, 2012 4:12 am

If you want the game to be top down, you have to draw the sprites that way. I don't think there's a way to switch between top-down and side-scrolling in the same game if that's what you're asking.
B
18
S
3
G
1
Posts: 21
Reputation: 1,210

### » Fri Jun 08, 2012 2:52 pm

(damn my english)

Problem is behavior of the ball.

Uphill:
If speed of the ball is too slow (not go over to hill), then speed of ball should to slow down (decelerate) and ball rolling backward down to hill etc.

How I do like this behavior to ball?

Example 2: Hole number 3 etc.
B
10
S
4
Posts: 8
Reputation: 2,313

### » Fri Nov 02, 2012 1:18 am

If you use the custom movement for the ball then I think you could decrement the dx or dy value based on the hill. So when ball is overlapping hill dx= dx-1 or something like that. That would make the ball slow down on the hill but not effect the y velocity making it so you get a nice curve.jhawke2012-11-02 01:20:15
B
5
Posts: 2
Reputation: 683

### » Fri Nov 02, 2012 8:13 am

@Jacke use physics to do this. When ball overlapp right hill: every 0.1sec apply force to left

or wait for example capxdelgado2012-11-02 08:16:37
B
122
S
33
G
53
Posts: 1,905
Reputation: 39,756

### » Fri Nov 02, 2012 8:36 am

https://dl.dropbox.com/u/44710358/hills%20and%20ramps.capx
I create a simple minigame but in that moment i dont know how to slow down relased ball maybe someone modify the codedelgado2012-11-02 08:39:45
B
122
S
33
G
53
Posts: 1,905
Reputation: 39,756