Any animated radar examples?

Posted By: Gorilla123

Any animated radar examples? - 12/25/10 00:34

Hello I am new here but I need some help with my project. I am not quite exactly a beginner but decided to post this in the starting with gamestudio section in the forum anyway. So here it is I need a radar example with an animated radar. I can figure out the minimap part for myself but I need an animated radar that works and looks good as well. Thank you very much, and just so no questions are asked I use 3d Game Studio A7 7.77!
Posted By: MasterQ32

Re: Any animated radar examples? - 12/25/10 00:58

set up a radar overlay panel
this panel is a full circle with your rotating(animated) radar
now you set up this panel with center_x and center_y
and simple increase the panels angle in every frame
now you have an animated rader grin
Posted By: Gorilla123

Re: Any animated radar examples? - 12/25/10 01:24

An example would be great if someone has one.
Posted By: MasterQ32

Re: Any animated radar examples? - 12/25/10 02:27

Code:
PANEL* pan_radaroverlay = 
{
    bmap = "overlay.png";
    center_x = 32;        //The overlay = 64px²
    center_y = 32;
    flags = SHOW;
}
function radar_startup()
{
    while(1)
    {
        pan_radaroverlay.angle += 5 * time_step; //5 is rotation speed
        wait(1;
    }
}



here's the picture:

Posted By: Gorilla123

Re: Any animated radar examples? - 12/25/10 06:02

Much thanks Richy and Merry Christmas!
© 2024 lite-C Forums