Has anyone tried to make (rts)game with ability to create walls while in game, like in the most of rts games?
I would like it to work something like this...
- On left mouse button clicked - Create wall_end.sprite to mouseXY
- When left mouse is down - Create wall_middle.sprite on line between wall_end.sprite(or line starting point) and mouseXY(--->line ending point) points so that middle parts (16x16 tiles) fill the gab and align nicely.
On left mouse button released - Paste the wall in the game.
So it's basically like using [u:36lf2gn6]line object but with textures[/u:36lf2gn6]. I think panel and tiled background objects don't work on this... And also the wall must be built in parts so that you can destroy it in parts.
I probably could do this in some dirty way, but first I'm asking for the "clean" and the best way to do this (also saving my brains and time).
I would also like to draw more complex wall at the same time, like...
First click starting point for wall(tower?), second click for another tower, third click for another tower... and then create a wall between these points in order. Also I want to "preview" the wall before making it.
Probably too complex to make example(-->.cap) for me but, maybe some explanation about the logic and how it could be made.