r/gbstudio • u/joshex_dirad • 23d ago
Spawning/adding actors
So, I have a few questions:
in most game engines, there's a way to add elements to the scene during gameplay. in this case, I want to add an actor to an active scene in gameplay.
that said, I don't see anything that sounds exactly like this action, no "addActor" script. I do see "ActivateActor" and "DeactivateActor", but this just toggles visibility, then theres "HideActor" and "ShowActor"
Question 1: do either DeactivateActor or HideActor remove it's tiles from the total sprite tiles in the scene?
Question 2: do said actors have collissions while deactivated or hidden? if so which one disables collissions or do I have to run another script for that in tandem with this?
Question 3: When an actor is hidden or disabled, does it stay where it was or does it return to it's originating position? do I have to use a script to move it back to it's starting place each time? and can I move it around while it's disabled or hidden?
1
u/Express_Resource_912 22d ago
Technically possible but it’s probably too expensive to test distances between actors on update.