Radar script available for use

Hey guys,
Our game features a radar (updated from a script by PsychicParrot), which we wanted to make available to anyone else who might need it.
The radar can track enemies (or any other object) by tag, displaying them on a radar screen. We have updated it to be easily moveable to any part of the screen, made it easy to change the size of the radar, and also made it so that the radar can display the state of the enemies it is tracking (displaying them in on of two different colors based on their state).

Demo Scene: http://www.dastardlybanana.com/radarDemoWebPlayer.htm

The script is available for download on our website: http://www.dastardlybanana.com/radarPage.htm

As well as on the Unity wiki (with PsychoParrots original): unifycommunity.com

Lastly, an early version of our game which features the radar can be found here: http://www.dastardlybanana.com/Projects.htm

edit- sorry, psychicparrot, not psycho
also, suggestions and comments are always appreciated

1 Like

PsychoParrot? LOL That’s my Call Of Duty name … :smile:

Nice one, DastardlyBanana! I love seeing stuff grow like that. Thanks for sharing.

Yeah, since I’m fairly new to Unity the stuff that the community has put up here, along with the example scenes and tutorials, have been extremely important. Without people putting their scripts and work up I likely wouldn’t have made it this far, so I figured that I should try to contribute what I could. And thanks for sharing the original radar script to begin with.

Also, sorry about the name mix-up, despite seeing the correct name dozens of times during the process of putting the radar script up, I still thought your name was PsychoParrot.

Dude, no, it’s all good. Seriously, my name in Call of Duty is PsychoParrot … I also tend to use that name whenever the character limit doesn’t allow the extra char in Psychic (which surprisingly happens a lot!).

Anyways, your game rocks and you share code … that’s 1 billion karma points already from this community :smile:

I don’t see it mentioned anywhere, is this indie compatible?

thanks

Yes, it is.

That’s great to hear, thanks for sharing.

thanks

Very nice radar and nice of you to share. Thank you.

If you rotated the background texture, it would look really cool. :wink: Otherwise, great job!

Many thanks indeed. I am needing a radar for my current project, and this will set me in the right direction.

Thank you for sharing it with us.

Matt.

I had been thinking about doing that but forgot to put it in, thank you for reminding me.

WoW man, Nice Radar.

Thank you a lot.

Good job with the radar.

The game project looks very similar to the one posted here:
http://forum.unity3d.com/viewtopic.php?t=21381&postdays=0&postorder=asc&highlight=learning+project&start=0

Are you both working on the same project?

No, although I did notice the similarities when I saw it. In addition to being an FPS, our game is different in a lot of our focuses such as online an leaderboard and weapon upgrades/unlocks( not added in latest build).
I do like his game, though, it’s pretty fun.

I get a script error:

(75, 24) BCE0018 The name ‘EnemyAINew’ does not denote a valid type.

Any suggestions? Have others had this problem?

edit- it looks like the package was corrupted, I re-uploaded it and it should work now, so try redownloading the package.

Hey! This script looks ideal, but I can’t get it working. No errors or anything, and the radarBG displays correctly, but there are no blips D=

Any idea why? Everything’s set up like in the example package, but it just won’t draw the blips (either that, or it draws them and they aren’t visible)…

Looks like you might have forgotten to tag your enemy objects “Enemy” as in the following line calls for it:

gos = GameObject.FindGameObjectsWithTag("Enemy");

I’ve encountered an error too, it says “IndexOutOfRangeException: Array Index Out of Range” and this occurs at this line of my Enemy AI script:

gos = GameObject.FindGameObjectsWithTag("Player");

does this have something to do with me naming my ‘player’ as First Person Controller? I’ve tried changing the code to reflect the name change but no results so far.