Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

Referencing Actors created in the GUI editors

A topic by curioussavage created May 29, 2016 Views: 268 Replies: 1
Viewing posts 1 to 2

Hey guys, If someone could help me out with this, I have an Actor created in the scene editor for a camera and I want to get a reference to it for raycasting. There has to be a way to get access to it somehow. If not I will just create it in typescript and save a reference myself.

(5 edits)

Aha! I finally did the obvious and looked in the Typescript api docs under Sup.Actor. For future reference you can get a reference to any actor in the game with the following method which is found in the Sup.Actor docs though it is not a method on the Actor class. (maybe this could be a static function on Sup.Actor

Sup.getActor('myActor')