- Joined
- Oct 17, 2009
- Messages
- 370
So I was thinking about some ideas for heroes I had and began wondering about if there is a way to easily shift all units inside an array by 1, say I make an array containing 6 units. I remove the first unit with index 0, then move the rest of the 5 from 1-5 to 0-4.
It's easily doable by assigning the units to a temporary array and then back with 1 less index, but is there an easier way?
It's easily doable by assigning the units to a temporary array and then back with 1 less index, but is there an easier way?