FXGLGames
FXGLGames copied to clipboard
Tower Defense towerbase
Hi Almas,
How are you initializing the towerbases in tower defense?

I was making my own version of zombs.io and was wondering how to set the onClick for an object made in the tmx?
@AlmasB
The .tmx objects are parsed via the EntityFactory's related method, i.e. the one marked with the correct type / class in @Spawns(). There you can use onClick as above.