# Changing gravity angle problem

Get help using Construct 2

### » Fri Aug 17, 2012 7:49 pm

Hi all,

I have recently started using construct 2 to make games and I am experimenting with changing the gravity. But I have run into a problem.

Lets say there is a platform moving from the left to the right, which is solid and there's a ball that can move according to the platform rules. If I change the gravity angle to 180 degrees, the ball falls to the left on the platform. My problem is: When it is on the platform, it slowly moves up without me touching any buttons. When I move it up, it goes faster then it should and when I move it down, it goes slower then it should. Like something is "pulling" it up.

I do not have this problem when the gravity angle is 90 degrees and the platforms move up. Feel free to ask more questions and please help me.
B
4
Posts: 17
Reputation: 534

### » Fri Aug 17, 2012 7:59 pm

this sounds like a simple event problem. Upload your capx so we can help.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,440

B
4
Posts: 17
Reputation: 534

### » Sat Aug 18, 2012 2:17 am

How are you changing the gravity angle?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
69
S
8
G
6
Posts: 933
Reputation: 9,389

### » Sat Aug 18, 2012 2:31 am

from the property , i have made an example of 4 gravity(s) if you want it here is the link :
http://www.scirra.com/forum/four-gravities_topic53485.html?KW=four
B
49
S
15
G
6
Posts: 795
Reputation: 12,085

### » Sat Aug 18, 2012 9:17 am

Thnx for the link, but there is one problem: I use platform and you use bullet and 8 direction movement. I could try to change platform to those two and see if it works. Boaz2012-08-18 09:27:08
B
4
Posts: 17
Reputation: 534

### » Sat Aug 18, 2012 9:27 am

Nevermind, I tried but it won't work. I'll just continue building my game but I'll still be looking for a solution.
B
4
Posts: 17
Reputation: 534

### » Sat Aug 18, 2012 10:49 am

o.o don't give up... check this , is this what you are looking for?
(keys = arrows , z )
https://dl.dropbox.com/u/90034817/scirra/2gravity.capx
B
49
S
15
G
6
Posts: 795
Reputation: 12,085

### » Sat Aug 18, 2012 11:18 am

Almost. Only the gravity changes from up --> down to right --> left. Another option would be to just spin around the entire thing 90 degrees, but I don't know how to do that. :p
B
4
Posts: 17
Reputation: 534