User Tag List

Results 1 to 10 of 34

Thread: Making Link Invisible

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Octorok
    Join Date
    May 2007
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,509
    Level
    13
    vBActivity - Bars
    Lv. Percent
    12.55%

    Re: Making Link Invisible

    Freezeing Enemies:

    make some global vars;
    int ene1X ; int ene1Y ; int ene1W ; int ene2X ; int ene2Y ; int ene2W ;
    etc... you will probley want to account for at least 10 enemies
    you can never tell how many enemies you will need to keep track of with summors, spliters, and the posibility of script-created enemies. but you will have to find a suitable number for your quest.

    Add a global var to check wether the freeze is active:
    bool eneFrozen = false;

    make a function that will be called when you use the whistle;
    make sure you do eneFrozen = true; before calling this function

    void eneFreeze (){
    //record all enemies X / Y cords and weapon
    npc ene1 = Screen->LoadNPC(1);
    npc ene2 = Screen->LoadNPC(2);
    //etc.
    ene1X = ene1->X;
    ene1Y = ene1->Y;
    ene1W = ene1->Weapon;
    ene2X = ene2->X;
    ene2Y = ene2->Y;
    ene2W = ene2->Weapon;
    //etc.
    While(eneFrozen == True){
    ene1->X = ene1X;
    ene1->Y = ene1Y;
    ene1->Weapon = 0;
    ene2->X = ene2X;
    ene2->Y = ene2Y;
    ene2->Weapon = 0;
    //etc.
    Waitframe();
    }
    //once eneFrozen == False again (at the end of your animation)
    //restore the enemies' weapons
    ene1->Weapon = ene1W;
    ene2->Weapon = ene2W;
    //etc.
    }

    Thats pretty much all there is to it, just with alot more varibles

    Don't be worried about asking alot of questions, I'm always glad to help ppl learn more, it also helps me by makeing me solve problems I otherwise would not have thought of, so I learn as well

  2. #2
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,962
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.58%

    Re: Making Link Invisible

    Cool SM...there's just a bug with walker/shooters that will glitch when given (none) as a weapon type. You'll need to use ene1->Halt = 0; also. (They don't fire when halt rate is 0.)

    ...I should really report that bug. I just haven't tested it at all yet..
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social