Hi coders!
I am trying to do a remake of Warcraft just to scratch my brain with a few funky ideas.
Problem: I’m stuck on the first step though… I want to select a soldier, and then select the place for them to move and they go there, following the shortest path. Part of this problem is the way I’ve made the ‘selection box’ for the unit. Every time I select it, I’m just making a new box at the moment. There can only ever been one unit selected at a time.
What I’ve Tried : There is a path following extension which I’ve began using… I imagine you would use the selected sprite’s current tile, and then the chosen tile to fill in the variables and have it move…
Need help to… :-
- Create only one selection box, which snaps instantly to the selected unit
- The selected unit then uses the path following to move.
Move with arrows. A to select. I spread 4 soldiers over the map randomly.
There is a function for trees but ignore that… that’s for later.