User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: 8-way Multidirectional Shooter Weapon

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

    Re: 8-way Multidirectional Shooter Weapon

    Quote Originally Posted by Joe123 View Post
    Does it derefrence the old one when that happens, and then beam3 just becomes the new weapon?
    I'd hope so.

    I'm not sure how it would work in normal C language, but as far as Zscript goes this is a HUGE benefit. It's the only way I can go through every Link and enemy weapon sprite, all the screen enemies' and many ffc cordinates, and check their locations in proximity to eachother based on CSets. Much faster than arrays.

    Ugh...anyways I posted some boss scripts at pure that use alot of for loops, so check those out.


    Now, I expect people to be using these scripts in quests. I mean c'mon people, it's an 8-way Link fireball!
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  2. #12
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,300
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.29%

    Re: 8-way Multidirectional Shooter Weapon

    Yeah, I've seen those scripts, I just don't understand how they work >_<

    Like that flamethrower script you made.
    It's about the only script that simple that I just can't understand.

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

    Re: 8-way Multidirectional Shooter Weapon

    Hey bigjoe, I just realized that if you change it to eweapon instead of lweapon and changed it to flame, then you just turned any enemy into a fire wizzrobe!



    Quote Originally Posted by Joe123 View Post
    Like that flamethrower script you made.
    It's about the only script that simple that I just can't understand.

    It's really quite simple. You have a loop like this:

    Code:
    for(int i=Screen->NumNPCs();i>1;i--){
    Now lets assume there are 100 enemies on the screen, So i=100 right? As the loop runs down to 1 (but not 1!) you've just run through every number that is a screen enemy, exept 1. So Screen enemies 2-100 could be pointed to by adding something like this inside the loop:

    Code:
    npc enemy = Screen->LoadNPC(i);
    From here we can do whatever we want to each of those 99 NPCs on the screen every frame. ...Like this:


    Code:
    for(int i=Screen->NumNPCs();i>1;i--){
        npc enemy = Screen->LoadNPC(i);
        enemy->HP=100;
    }
    Now Link is gonna find it pretty hard to kill those enemies if they keep regenerating themselves.

    Make sense.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  4. #14
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,300
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.29%

    Re: 8-way Multidirectional Shooter Weapon

    Oh!

    Well that makes more sense.


    I couldn't work out how you were referencing so many enemies with just one pointer.

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