Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

Hello! You can create new actors almost entirely from scratch, like so:

// Create an actor with code.
let newActor = new Sup.Actor("ANY NAME YOU WANT");

// You can add a behavior if you want it to do something.
newActor.addBehavior(SomeBehavior);

// This adds a new sprite renderer to the actor. You can add modelRenderers, and textRenderers too!
new Sup.SpriteRenderer(newActor, "SPRITE/PATH/GOES/HERE");

// You must set it's position in order for it to appear.
newActor.setPosition(0, 0, 0);

Or alternatively, if you've already made a prefab you can just append it to the scene:

// Add an already defined actor type to the current scene.
let newActor = Sup.appendScene("PREFAB/PATH/GOES/HERE");

// You must set it's position in order for it to appear.
newActor.setPosition(0, 0, 0);

Hopefully this helps :D