Hi guys before I go ahead with my space game project there is just one feature i am missing. Its a radar 2D or 3D the thing is I suck ass at python. I reckon you can get coordinants of a ship using getcurrent position and use setcurrent postion on the radar object. Like I said I suck ass and dont have the time to learn python. Anywho does anyone have a file or script or anything that would show me how to make one. Cheers.
Making a radar is fairly simple, it just requires one short script to get the object’s position, and another to set the position of the radar blip.
My webpage seems to be down at the moment, but I’ll upload a demo as soon as it’s back up.
Cool, should be very usefull for my game too. Because rer=turning to the same point in a huge adventure game is very hard without any map. :-?
I don’t have a .blend , but if no one can get one soon, I may make one, but anyways:
I would say you could have a second scene that overlays, with flat planes representing each object by using python to copy location, then have the camera in the second scene over the object that represents the player parented… then so the objects do not appear when they are beyond the border of the radar, I would have a near sensor connected to a python controller that tells the objec to turn itself invisible, or the sensor could set off a property to true, then a property sensor could set off the python controller, just in case some people dont know, heres the python for making the object invisible:
Import Rasterizer
Rasterizer.enableVisibility(1)
cont = GameLogic.getCurrentController()
obj = cont.getOwner()
obj.setVisible(1) #or 0 for invisible
hey cool little demo…thanks!