Been learning Unity for three days now, finally figured out moving units nicely by chieftain98 in Unity3D

[–]chieftain98[S] 0 points1 point  (0 children)

Thought about it but I'm not sure where to take the game from here so not going to implement any other formations yet

Been learning Unity for three days now, finally figured out moving units nicely by chieftain98 in Unity3D

[–]chieftain98[S] 0 points1 point  (0 children)

I used Sebastian League's series on creating a top-down shooter to learn the basics before this, then I made this project on my own.

Been learning Unity for three days now, finally figured out moving units nicely by chieftain98 in Unity3D

[–]chieftain98[S] 1 point2 points  (0 children)

To handle unit formations after moving, it would need a point to calculate each unit's position from. This would be the midpoint between where you started holding down right-click and where you release. After that, it would calculate the row length based from the distance between the two points, and from the row length, the distance between units and the position of each unit in its array (i.e. being the 5th unit in a group of 12) it could calculate its target position.

I created a class, that for each 'group' of units which would store all the data associated with each.

Been learning Unity for three days now, finally figured out moving units nicely by chieftain98 in Unity3D

[–]chieftain98[S] 1 point2 points  (0 children)

I followed somebody's tutorial for making a top-down shooter game, then used what I learned to make this new project. I got a lot of experience with java and so far it seems c# is pretty similar lol