Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

i have a question abuot the coding side how did you manage the compasses on the side of the astroid.I want to implement a similar system in my game which shows where a bullet is fired from and i want to hvae a small circular nvaigation around the player that shows it with and arrow.It would be of great help if you could give me some insights of how you managed to do your system.

(+1)

ofcourse :) I am sure you could find a way better way to do it, but the way i went about it was creating WaypointManager, Waypoint and WaypointMarker classes.

The Manager would be called by any Waypoint on their Start method, and given a reference to it to hold in a list. From my playerController script I also gave the manager the Marker parent Transform  (which was just an empty gameobject in my player). The the manager would then instantiate a Marker prefab everytime a new Waypoint was added. 

The markers where basically just prefabs of every variation i wanted to have, and just chose a radius for each one so they wouldnt overlap.