this post was submitted on 28 Sep 2024
1 points (100.0% liked)

Godot: The open source game engine

21 readers
1 users here now

A community for discussion and support in development with the Godot game engine.

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/godot by /u/Boopcheese on 2024-09-27 16:27:09+00:00.


I can't find a reason not to do this, but my scope is limited to some small 2D projects where it's worked just fine for me. I'm about to start working on a bigger project than normal and just want to get opinions or advice from others before I get in too deep and need to restructure everything (It's for a game jam so I'm tight on time, otherwise I really wouldn't mind).

I'm sure there's some cases I haven't run into but I mostly use it to store/share locations and certain flags on essential pieces of the current scene.

*Side note - Discussion flair would be nice, didn't really feel like any of these fit.

ETA: Quick clarification that "everything" was a bit of an exaggeration, very bad word choice on my part. My Globals.gd file currently has 8 variables that rely on data from 2 other scripts/scenes. Only those files will update their specific Global vars while others read the necessary data (could be an enemy off-screen, indicator that a certain flag should be set, etc.). Last night I couldn't think of a way to do what I needed with something like a raycast or area just because they relied on things existing in specific grid coords, but sounds like I may need to try again today and find a better approach.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here