#Best Practices for Instancing Scenes with Different Sprites?

1 messages · Page 1 of 1 (latest)

lusty anvil
#

if i want to say, have a generic scene that all my interactable objects will be instances of (it's a myst like adventure game)

and they're all different objects with unique sprites and pixel perfect collisions that'll have to be generated and unique signals they'll send when they're clicked
is it considered best practice to just generate the Sprite2D (and go through texture2D and all that stuff) and the collisionpolygon2D and custom signals in the top level node's script?
or is there a better way to do it?

orchid pollen
#

You can do that, or you can make a tool script

lusty anvil
#

tool script? i've never heard of those actually.. lemme look into it

lusty anvil
#

oh snap i just realised a flaw with the way im doing it

#

all the objects will just be invisible in the editor....