Sorry, I'm gonna bump this thread with a new event sheet. I really need someone to show me where my data is going wrong. I'm not understanding something. I'm trying to advance from simpler games to more difficult, but this player selection and movement stuff is confusing me. Someone please take a look at the image below and tell me what I am missing in understanding and flow of control.
Objects on layout
three playerUnits, a moveLocation
playerUnit [isSelected = false, isMoving = false]
moveLocation [uid = 0, isSelected = false]
Basically for this example I would like to click a unit, move it to one of the moveLocations that pop up around it, and select another unit and move it.
Select a unit, the move tiles show up, select a different unit, the other units move tiles disappear, and the newly selected units move tiles show up. After the third unit is selected move tiles show up and the last units disappears. When I select any of the units again the last units move tiles disappear and the newly selected unit doesn't get move tiles.
Second bug is I can't move. This happened when I added a Boolean condition, not sure which one. Before that the lerp was working but when I selected another unit as that one was moving it would stop moving. When I selected a move tile for the other unit that I just selected the other unit would move towards it too..
Please help with understanding on how to order these programs. I can't seem to get out of simple stuff.