1 decade ago by Kxen
Hi.
I'm making a game where the player can spawn entities with the mouse (I have a pointer entity that is following the mouse) and I want to make so that you can only spawn entities in certain tiles. So I need to check whether my pointer entity is overlapping one of these tiles or not.
My only idea is to use the collision map and handleMovementTrace() but I don't really know how and haven't got it to work so far.
Any suggestion or solution?
I'm making a game where the player can spawn entities with the mouse (I have a pointer entity that is following the mouse) and I want to make so that you can only spawn entities in certain tiles. So I need to check whether my pointer entity is overlapping one of these tiles or not.
My only idea is to use the collision map and handleMovementTrace() but I don't really know how and haven't got it to work so far.
Any suggestion or solution?