A way to check if gravity is on?

All about creating levels and level sets, custom elements and custom artwork.

Moderators: Flumminator, Zomis

Post Reply
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

A way to check if gravity is on?

Post by Zomis »

A little game making puzzle that just came to my mind...

Is there any way to make sure that gravity is on without first checking if gravity is off (by placing something which isn't reachable with gravity on) and then forcing that yellow guy to go through a gravity port?

I'm guessing that there's no way to check this, since those places which is reachable with gravity is also reachable without gravity. But I hope there is some way still...

If you can find a way to check this using CEs, that's also ok. (Making a CE with an action to turn on gravity is not accepted. I want to CHECK if gravity is on or not, not forcing it on!)
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

I think,
there should flash a
... gravity lamp in the
right side.
Then you could see, if gravity is on.
Image
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Post by Zomis »

Sascha wrote:I think,
there should flash a
... gravity lamp in the
right side.
Then you could see, if gravity is on.
I don't mean like that.
I'm looking for some element "machine" or something to check if gravity is on.
Like if gravity is on -> then explode bomb at a position

I'm not suggesting that holger should fix a way to do this, I'm wondering if there are any elements which can make it possible as RND is now.
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan »

Maybe having a CE that forces Rockford to move up all the time, then do something depending on how high he got.... not sure how you could do it though.
User avatar
James
Posts: 29
Joined: Fri May 19, 2006 2:36 pm
Location: Spain

Post by James »

You can check that easily by walking on acid:
:arrow: If gravity is off nothing happens.
:arrow: If gravity is on ... bye, bye Rockford !

For this to work you have to toggle on:
Player can fall in acid (with gravity)
Image
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Post by Zomis »

James wrote:You can check that easily by walking on acid:
:arrow: If gravity is off nothing happens.
:arrow: If gravity is on ... bye, bye Rockford !

For this to work you have to toggle on:
Player can fall in acid (with gravity)
Well... "bye bye Rockford" isn't really the result I want for checking this :)

>Maybe having a CE that forces Rockford to move up all the time, then
>do something depending on how high he got.... not sure how you could
>do it though.

Now that's a good idea! A CE which forces Rockford to go up, and if gravity is on he falls back down. But what if gravity is off, he could still fall down... hmm... tricky...
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

Why don't you walk upon?
If the player falls to the ground again you know:
gravity on.
Image
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

Yes, but the player could walk down on purpose to trick the CEs into thinking that gravity is on. :|
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
Post Reply