Ergebnis 1 bis 3 von 3

Thema: alpha radar nachbauen

  1. #1
    Semi Pro
    PotW Gewinner: 2
    Avatar von Mr.H0n$3L
    Registriert seit
    12.06.2010
    Ort
    Nordhausen
    Beiträge
    2.487

    Standard alpha radar nachbauen

    hallo, ich hab da ein kleines problem, ich wollte den alpha radar nachbauen, aber der compass an sich, bewegt sich ja nur nach links und rechts, also ist meine frage, ist es möglich dass sich der compass um 360° grad dreht.


    der ActionScript 2 code ist orginal ja so wie hier, oder?
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    setCompassRotation = function (_compassrotation)
    {
    m_fCompass = _compassrotation;
    if (Root.RadarCompassStealth.Compass)
    {
    _root.Root.RadarCompassStealth.Compass._rotation = _compassrotation;
    } // end if
    _root.Root.Heading._x = _compassrotation;
    _root.HeadingVar = _compassrotation;
    };
    setView = function (_frot)
    {
    _root.Root.RadarCompassStealth.View._rotation = -_frot;
    };
    var m_allIcons = new Array();
    var m_allValues = new Array();
    setObjectArray = function (posX, posY, rot)
    {
    var _loc6 = 10;
    var _loc5 = -3.500000E+000;
    setPlayer(posX, posY, rot);
    var _loc2 = new Number();
    var _loc3 = new Number();
    _loc3 = 0;
    for (var _loc2 = 0; _loc2 < m_allValues.length; _loc2 = _loc2 + 11)
    {
    var _loc1 = m_allIcons[_loc3];
    if (!_loc1)
    {
    if (Root.Units.ObjectIcon)
    {
    _loc1 = Root.Units.ObjectIcon.duplicateMovieClip("ObjectIc on_" + (_loc3 + 100), _loc3 + 100);
    _loc1.blendMode = 8;
    m_allIcons[_loc3] = _loc1;
    } // end if
    } // end if
    if (!_loc1)
    {
    return;
    } // end if
    var _loc4 = m_allValues[_loc2 + 1] * 5 + m_allValues[_loc2 + 5];
    if (_loc1.Icon._currentframe != _loc4)
    {
    _loc1.Icon.gotoAndStop(_loc4);
    } // end if
    _loc1._x = m_allValues[_loc2 + 2] * 110 + _loc6;
    _loc1._y = m_allValues[_loc2 + 3] * 110 + _loc5;
    _loc1._rotation = m_allValues[_loc2 + 4];
    _loc1._xscale = m_allValues[_loc2 + 6];
    _loc1._yscale = m_allValues[_loc2 + 6];
    _loc1._alpha = m_allValues[_loc2 + 7];
    _loc1._visible = true;
    ++_loc3;
    } // end of for
    if (_loc3 <= m_allIcons.length)
    {
    for (var _loc2 = _loc3; _loc2 < m_allIcons.length; ++_loc2)
    {
    m_allIcons[_loc2]._visible = false;
    } // end of for
    } // end if
    m_allValues = new Array();
    };
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Geändert von Mr.H0n$3L (28.07.2010 um 01:47 Uhr)

  2. #2
    Professional
    Registriert seit
    18.11.2008
    Beiträge
    3.453

    Standard

    Frag auf Crymod :P In der Scripting&Coding Sektion.

  3. #3
    Professional Avatar von spYder
    Registriert seit
    28.12.2008
    Ort
    Graz - A // Ribarica - HR
    Beiträge
    2.978

    Standard



    pm an mich, wenn du dieses radar willst. ;D


Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •