When should I use global objects?

What are the advantages and disadvantages of global objects?

Should I always make objects global if I’m going to use them in more than one scene?

I take it that when you make an object global, any edits you do to it from any scene will be reflected on all?

The disadvantage I can see would be that if then I want to use slightly different properties in some particular scene, I would have to make a local copy OR override them with instance variables and properties, am I right? Are behaviors editable at the instance level or only at the object level?

Global Objects are available in all scenes you create in the future, you should not use always, in some cases is good to use it in others not. For instance in my game the platform_player and the player object are globals the rest of the objects not.

1 Like