Gravity shifting

For questions about using Classic.

Post » Thu Jun 18, 2009 1:50 pm

Hello all, does anyone have any suggestions on how I could fix the point of gravity to an object.

Think like Mario Galaxy how mario jumps off one planetoid but then gets sucked into the gravitational pull of another.

Another example would be to simply be running on a 2D plane with a floor and a ceiling, jump up, have the character flip upside down and then be running on the ceiling.

Help would be appreciated
thanks,

Mik
B
2
G
3
Posts: 28
Reputation: 906

Post » Thu Jun 18, 2009 3:05 pm

The platform behaviour allows gravity to be Up, Down, Left or Right, and can be changed during gameplay (which is what I'm doing in one of my Construct projects).

I did ask many, many months ago whether it was possible to have 360 degrees of gravity direction for the behaviour (in fact, I'm sure I submitted a feature request), but never heard anything back.
Probably too difficult or time consuming for the devs.

So if you want more than the main four directions, you'll need to write your own gravity system.

Sponge.
B
2
S
1
G
3
Posts: 105
Reputation: 1,310

Post » Thu Jun 18, 2009 7:18 pm

[quote:151ffk68]Another example would be to simply be running on a 2D plane with a floor and a ceiling, jump up, have the character flip upside down and then be running on the ceiling.[/quote:151ffk68]

This you can already do. In fact, I'm making a game where you can do exactly that.


As for the 360 degree gravity, you might try physics. But yeah, as SpongeBrain said making your own custom movement with events would probably be the best way to go.

@SpongeBrain: I don't think it would really be feasible to add 360 gravity to the existing platform behavior, the way it works currently is just not compatible at all. David would probably have to rewrite the behavior from scratch.

Though if David is still working on his Custom Movement behavior (or whatever it's called) then it would be a lot easier to make a 360 degree gravity platform whatever blah blah.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Jun 18, 2009 10:54 pm

[quote="deadeye":6m8xua8j]
This you can already do. In fact, I'm making a game where you can do exactly that.[/quote:6m8xua8j]
That's exactly what I just said to him. :lol:
Are we writing the same game? lol

[quote="deadeye":6m8xua8j]@SpongeBrain: I don't think it would really be feasible to add 360 gravity to the existing platform behavior, the way it works currently is just not compatible at all. David would probably have to rewrite the behavior from scratch.[/quote:6m8xua8j]
Yeah, I hinted that that was the case when I said it was probably too difficult or time consuming for the devs, and that it was probably why I never heard anything back.

We can't expect plugins to do all the hard work for us can we. :D

That custom movement behaviour sounds interesting.
Is there a discussion on these forums about it anywhere?

Sponge.
B
2
S
1
G
3
Posts: 105
Reputation: 1,310

Post » Mon Jul 13, 2009 3:13 pm

Sorry everyone I've been away, thanks so much for the info, it works with the directional gravity and I'm trying to make a custom physics based movement so it works in 360 degrees, so far it kind of works, ish, well the object keeps flipping out if there's more than one point of 'gravity' on the screen, I'll put up a cap later.

[quote="SpongeBrain":2264pvrn][quote="deadeye":2264pvrn]
This you can already do. In fact, I'm making a game where you can do exactly that.[/quote:2264pvrn]
That's exactly what I just said to him. :lol:
Are we writing the same game? lol

[quote="deadeye":2264pvrn]@SpongeBrain: I don't think it would really be feasible to add 360 gravity to the existing platform behavior, the way it works currently is just not compatible at all. David would probably have to rewrite the behavior from scratch.[/quote:2264pvrn]
Yeah, I hinted that that was the case when I said it was probably too difficult or time consuming for the devs, and that it was probably why I never heard anything back.

We can't expect plugins to do all the hard work for us can we. :D

That custom movement behaviour sounds interesting.
Is there a discussion on these forums about it anywhere?

Sponge.[/quote:2264pvrn]
B
2
G
3
Posts: 28
Reputation: 906


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest