1 decade ago by Elvar
Hi guys.
My TD game i moving along great, but still i am new to Impact, therefor i got some questions i hope you can help me with.
First of all, have a look at the current game @ http://dev11.reload.dk/blomster/ don't mind the retarded loading screen, woke up today, to see my designer fucked it up :).
If you click on the Tower Deck, you can see that a tower spawns, it follows your mouse until clicked on a tile. This works great, now next step would be, not being able to place towers on Roads, Trees, tiles which already consist of a tower.
So i thought about how i could solve this, and this is what i came up with..
I could create a block entity, placing entities in weltmeister where i don't want the player to be able to place towers, then i could check if there was a entity on the position.
However spamming the entity layer with blockedTile entities just seemed a bit ridiculous to me.
So i thought, if i created another collision layer (Blocked tiles) instead, testing for colllision when palcing towers. But this came to an end, when i wasn't able to detect for which collision layer, the collision came from, interfering with the normal collision layer.
So i guess my question is, how should i really approach this?
Also how do check if there is placed an entitie on a tile? :)
Best regards
Elvar
My TD game i moving along great, but still i am new to Impact, therefor i got some questions i hope you can help me with.
First of all, have a look at the current game @ http://dev11.reload.dk/blomster/ don't mind the retarded loading screen, woke up today, to see my designer fucked it up :).
If you click on the Tower Deck, you can see that a tower spawns, it follows your mouse until clicked on a tile. This works great, now next step would be, not being able to place towers on Roads, Trees, tiles which already consist of a tower.
So i thought about how i could solve this, and this is what i came up with..
I could create a block entity, placing entities in weltmeister where i don't want the player to be able to place towers, then i could check if there was a entity on the position.
However spamming the entity layer with blockedTile entities just seemed a bit ridiculous to me.
So i thought, if i created another collision layer (Blocked tiles) instead, testing for colllision when palcing towers. But this came to an end, when i wasn't able to detect for which collision layer, the collision came from, interfering with the normal collision layer.
So i guess my question is, how should i really approach this?
Also how do check if there is placed an entitie on a tile? :)
Best regards
Elvar