User Tag List

Results 1 to 10 of 10

Thread: Making Lweapons that pass through enemies...

  1. #1
    Gibdo beefster09's Avatar
    Join Date
    Mar 2006
    Age
    31
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,711
    Level
    16
    vBActivity - Bars
    Lv. Percent
    97.76%

    Making Lweapons that pass through enemies...

    Since we can make items spawn weapons that pass through enemies, like the golden arrow, is it possible to do this via script? It doesn't seem possible to spawn weapons that don't disappear after running into keese, also killing them.
    Avatar: Just who the SPAAAACE do you think I am?

  2. #2
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,581
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.43%
    Achievements It's over 9000!

    Re: Making Lweapons that pass through enemies...

    I wonder how that Ball and Chain script worked then. I've been trying to figure it out, but ..

  3. #3
    Gibdo beefster09's Avatar
    Join Date
    Mar 2006
    Age
    31
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,711
    Level
    16
    vBActivity - Bars
    Lv. Percent
    97.76%

    Re: Making Lweapons that pass through enemies...

    Problem is I don't want this LWeapon to do any damage- not even kill keese. I haven't really investigated this thoroughly.
    Avatar: Just who the SPAAAACE do you think I am?

  4. #4
    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,960
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.34%

    Re: Making Lweapons that pass through enemies...

    hmm... I have an *idea* if you want to try it out.

    What if you either change Links weapon to an eweapon while it is in close proximity to enemies, or this one's probably better: Change the lweapon to a bomb type as simlar to the above.


    What do you think?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  5. #5
    Octorok
    Join Date
    Jan 2008
    Age
    32
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    940
    Level
    10
    vBActivity - Bars
    Lv. Percent
    64.39%

    Re: Making Lweapons that pass through enemies...

    lweapon->HitHeight = 0;lweapon->HitWidth = 0; should work.

  6. #6
    Gibdo beefster09's Avatar
    Join Date
    Mar 2006
    Age
    31
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,711
    Level
    16
    vBActivity - Bars
    Lv. Percent
    97.76%

    Re: Making Lweapons that pass through enemies...

    Wouldn't that just make the collision happen at the up-left corner of the lweapon?
    Avatar: Just who the SPAAAACE do you think I am?

  7. #7
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,581
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.43%
    Achievements It's over 9000!

    Re: Making Lweapons that pass through enemies...

    So I take it making them negative is out of the question entirely.

  8. #8
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,144
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.88%

    Re: Making Lweapons that pass through enemies...

    Quote Originally Posted by beefster09 View Post
    Wouldn't that just make the collision happen at the up-left corner of the lweapon?
    If the internal collision looks like the following, then no:

    Code:
    if(weapon->X + weapon->HitWidth > Link->X && weapon->X < Link->X + 16 && weapon->Y + weapon->HitHeight > Link->Y && weapon->Y < Link->Y + 16) { ... }
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

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

    Re: Making Lweapons that pass through enemies...

    I'm pretty sure if it has hitheight and width of 0 it can still hit an enemy, but don't quote me on that.

    Why'd you need one that goes through an enemy though?
    Is it just a decoration?

  10. #10
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,852
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.91%

    Re: Making Lweapons that pass through enemies...

    The real solution:
    Code:
    weapon->HitXOffset = 2000; // Or some high number.

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