Toggle Gravity Created 6 years ago2017-11-05 07:53:53 UTC by User#6970 User#6970

Created 6 years ago2017-11-05 07:53:53 UTC by User#6970 User#6970

Posted 6 years ago2017-11-05 09:35:00 UTC Post #337967
Is it possible to toggle gravity? I'm trying to control this using masters but I fail.

I have a button, two multi, two changetargets and two multisources. The button targets multi1. Multi1 and multi2 both point on their respective multisource and changetarget which switch which multi the button points to. I have two trigger_gravity, one at 0.3, the other 1 set to their respective master.

Please someone confirm this is not doable.

Edit: I tried the edit button and it's great!
Posted 6 years ago2017-11-05 16:01:35 UTC Post #337970
Upload your map and give us a link to it if you don't mind. I can try to figure out what the problem is.
Posted 6 years ago2017-11-05 22:57:52 UTC Post #337973
I've been questionning on my hesitation on sending a map of a decades old game to someone else...

...still I rather not. I'm trying pretty special/fancy stuff with tons of triggers and I rather not share before the time. I'll create a test map soon and see if I can reproduce and send it to you.

In the meantime, thanks x 100
Posted 6 years ago2017-11-07 03:57:40 UTC Post #337990
OK, I created the most basic example: http://www.filedropper.com/test_413

Basically, you have a trigger_gravity set at 0.3, its master, a multisource and a button that targets that multisource.

Without the button being active one would expect the trigger_gravity to be turned off, but it's not.
Posted 6 years ago2017-11-07 18:31:35 UTC Post #337993
"Without the button being active one would expect the trigger_gravity to be turned off, but it's not."
Ah, now I see what's the problem. Trigger_gravity doesn't affect the gravity itself in its area. It works like trigger_multiple, but instead of targeting an entity it just changes the gravity for the player who activated it. To get their gravity back to normal, the player must activate another trigger_gravity that will set the player's gravity back to normal.

EDIT: Made some tests and I fear it's impossible to tie a trigger_gravity to a master. Here's the map I tested it on.
Posted 6 years ago2017-11-08 14:23:35 UTC Post #337998
Thanks Windawz. It doesn't matter. This thing was a nice to have for me.
Posted 6 years ago2017-11-13 16:52:23 UTC Post #338041
I had a crazy idea.

Divide a room into squares. Each square being a trigger_teleport with a teleport_target. Each trigger_teleport has a multisource as a master and is thus toggle-able.

When you want to change gravity, teleport the player within the square to a room with a different gravity then teleport him back.

The result is more or less seamless, but it would work. : )
Add a bit of makeup (effects) and voilà.
Posted 6 years ago2017-11-13 23:19:17 UTC Post #338045
You would always end up teleporting back to a fixed point in each area (and facing a certain direction), though. Maybe that would work for your purposes, but I wouldn't call it "seamless". The smaller you make the squares, the more accurate it would be, but you'd also shoot up towards the entity limits pretty fast.
Jessie JessieTrans Rights <3
You must be logged in to post a response.