playMaker

Author Topic: [SOLVED] Get / Detect gravity value?  (Read 881 times)

Reactorcore

  • Playmaker Newbie
  • *
  • Posts: 9
[SOLVED] Get / Detect gravity value?
« on: July 24, 2020, 03:26:39 PM »
I have a character that is supposed to change how they move based on if there is gravity or not on the level.

While it seems easy to change gravity with Set Gravity 2D, I cannot find a Get Gravity 2D anywhere, even on the ecosystem. There is a Get timescale (similar idea), but I need something like that for gravity.

How do I detect what the gravity is via playmaker?

Thanks
« Last Edit: July 24, 2020, 04:42:06 PM by Reactorcore »

Reactorcore

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Get gravity value?
« Reply #1 on: July 24, 2020, 04:41:29 PM »
Thanks to ransomink on the playmaker discord, he created a Get Gravity and Get Gravity 2D custom actions (See attachements)

I tested them in Unity and they worked perfectly!