How can you create a radar in TGF? Let's say there is a 2D space simulation game, where there is you and there is another spacecraft moving. Is there a way to fit a 'radar' into the top-right or anywhere corner of the screen which shows the relative position of the other aircraft from yours? And to give it a max distance as the marker should not get out of the radar screen...
first create the box for the radar and put it in the top-right corner. make sure its an active object and the hot spot is in the top right corner. goto object preffrences and un-check the 'follow the playfield' box.
next you need to work out how much smaller the box is from the total size of the playfeild. for example 1/4 the size
now you need to create a small active object to represent the player on the radar. again, uncheck the 'follow the playfeild' box. now go to the events editor.
put an always event.
now set the x-position of the object to represent the player to the x-pos of the player, divided by how much smaller the radar object is, plus the x-pos of the radar object.
for example- (assuming the radar object is 1/4 smaller than the playfeild)
you do the same for enemys (having a different marker object on the radar of cause).
to take markers off the radar when an enemy is destroyed you put the following event
if num enemyobjects < num marker objects --> destroy marker
if num enemyobjects > num marker objects --> Create marker
hope that helps. feel free to ask anymore questions about it
Thanks! I'll create your version from sketch, but I guess I'll have to find that other one too... Which is the exact name of that tutorial at Tigerworks?