Gravity Direction

For questions about using Classic.

Post » Mon Mar 18, 2013 11:01 am

Hello, Im new to Construct and Im trying to get gravity around a globe like object, something that Construct 2 makes easy with its Set Gravity Angle, while theres only the 4 directions in Classic

Ive tried changing the angle at an offset, but it doesnt seem to be working properly, so if anyone can show me how to make a Classic version of this https://www.scirra.com/tutorials/273/how-to-make-a-gravity-based-platformer , I'd be really grateful

Also, pause button...
B
2
Posts: 8
Reputation: 316

Post » Mon Mar 18, 2013 2:34 pm

Unfortunately you'll need to use another behavior, perhaps the custom movement or physics object. The platform behavior in CC is set to 4 directions in the C++ it's made of.

To pause the game, Set Timescale to 0 in the System actions.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Mar 18, 2013 4:22 pm

Well thats not settling, but thanks for the pause button tips... Im improvising with primitive gravity zones but now getting the character to have his feet face the proper direction brings up a new problem

Could you maybe take a look at this and see what you can do?
https://www.box.com/s/1cyha03ir0q8srr5b7j1

(The circle is supposed to be the top, while the x is the bottom)
B
2
Posts: 8
Reputation: 316

Post » Tue Mar 19, 2013 6:27 am

The physics behavior is not suitable for this, you can only set it's value, not the direction(negative valuse will move everything down, positive values up, but you can't make any sideway moves unless you loop through every object which uses physics, and use the setforce function on them - this is just dumb).

But if you only need this gravity-like thing, you can make it easily by using the sin\cos, and distance functions.
B
10
S
6
G
3
Posts: 127
Reputation: 2,481


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests