How can I use object in different scenes without having to copy the code into each scene? Kinda like objects in godot, I want to have a thing in multiple scenes, for example, a player or object used in multiple scenes.
There’s no simple 1 step process but you have several options depending on your needs. The object itself can be global. So atleast, it wouldn’t have to be setup each time. It would retain the animations, settings, behaviors and other things.
You can use or make behaviors or extensions. If the global object had a custom behavior then it might make it easier.
You could use external events.
https://wiki.gdevelop.io/gdevelop5/interface/events-editor/external-events/#external-events
If it was simple enough like a puzzle or something. You could use one scene with external layouts that you swap out.
https://wiki.gdevelop.io/gdevelop5/interface/scene-editor/external-layouts/#external-layouts
Custom objects or or prefabs like sliders and buttons are a bit like a scene in a scene. You can add objects, animations and functions into 1 object. I’m not sure how well it would work with a character. It’s still relatively new but they have been making improvements.
https://wiki.gdevelop.io/gdevelop5/objects/custom-objects-prefab-template/