- Joined
- Nov 27, 2011
- Messages
- 29
Hello all,
Currently I'm working on map to create a chess game.
I got a nice idea for the movement. I use the [Unit - Move unit and face angle (instantly)] trigger command and move a unit (which are the chess pieces) 256 points to move 1 space up, see also the image below.
I've got this working in all 4 directions. The movement is just a dummy ability, which does nothing by itself. The trigger positions it 1 space further.
I give these 4 movement abilities to the units and to make sure they cannot move by them self, I made them buildings (with a pathing map of the blacksmith) and set their moment speed to 0. I tested with another unit, but it cannot walk through the chess piece. I added part of the object editor below.
The only thing that is not working is when I click the movement button and it moves to a space where another chess piece (also a building) is standing, then 2 chess pieces are on the same space.
For those of you who did not fully understand the problem, I added the map. If you open it, you can see how the movement system works.
Currently I'm working on map to create a chess game.
I got a nice idea for the movement. I use the [Unit - Move unit and face angle (instantly)] trigger command and move a unit (which are the chess pieces) 256 points to move 1 space up, see also the image below.
I've got this working in all 4 directions. The movement is just a dummy ability, which does nothing by itself. The trigger positions it 1 space further.
I give these 4 movement abilities to the units and to make sure they cannot move by them self, I made them buildings (with a pathing map of the blacksmith) and set their moment speed to 0. I tested with another unit, but it cannot walk through the chess piece. I added part of the object editor below.
The only thing that is not working is when I click the movement button and it moves to a space where another chess piece (also a building) is standing, then 2 chess pieces are on the same space.
For those of you who did not fully understand the problem, I added the map. If you open it, you can see how the movement system works.