1 decade ago by harryfeng
is there a way to find out the name of game class that an entity is in?
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
ig.game
(lowercase 'g').MyGame
? Due to JavaScript's nature, there's no direct way to figure out the Class Name of an object instance. You can however do stuff like this:if( ig.game instanceof MyGame ) { ... }