All Questions

Community

S
Mansfield Sharpe
posted to: Adding gravity

Gravity Script Variable Not Showing Up.

For the life of me I cannot find the reason why its not showing up. My code is exactly like yours but no go, I'm using the latest ver. of godot. However, I feel like i'm doing something wrong which I might be (new to coding) suggestion?
  • Nathan Lovato replied

    Here are the main potential causes:

    • The script file must be attached to the node. If there's a script icon next to it, click it to ensure it's the correct file. If not, it won't run, and you won't see the gravity variable in the inspector.
    • You need to reload the scene or restart the editor. In some rare cases, you might need to do that for the file to execute again.