User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Large Link Hitbox Doesn't Detect Collision Properly

  1. #1
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    283
    Level
    6
    vBActivity - Bars
    Lv. Percent
    19.62%
    Daily Activity
    0%
    Weekly Activity
    0.53%
    Monthly Activity
    0.48%

    New Bug Large Link Hitbox Doesn't Detect Collision Properly

    I'm working in verson 2.50.2 and created a quest with a 1 x 2 sprite. Almost immediately, I noted that the sprite wasn't colliding with enemies, spikes or eweapons except on its bottom half. I ended up scripting a solution to this, but having to do that is just painful. I could probably provide file to demonstrate this, but I'd have to remove all of the scripts and that's gonna take some time. I'll include one if requested.

  2. #2
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,264
    Mentioned
    107 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,248
    Level
    20
    vBActivity - Bars
    Lv. Percent
    64.12%
    Daily Activity
    0%
    Weekly Activity
    19.9%
    Monthly Activity
    27.72%
    For the record, this was intentional, as the large Link sprite was intended for overhead view, as Z3 or MC. The hitbox area was designed to be his feet, to collide with Solid Damage Combos, and such, so that the upper-portion was not generating exztra damage, or causing overlap problems with solid combos, and such.

    If we properly add Link->Extend, and fix the other attribs tied to it (e.g. HitWidth, HitXOffset), we should be able to fit custom hitboxes for Link in a future build. I looked at the code, and there's nothing that really makes any relationship with these values to the actual hit detection. We'd need to add that, and do a partial rewrite of the collision code to support it.

    Another thing we might be able to do as a stopgap, is change the hitbox for Large Link in SideView mode. That might be more straightforward, and would allow sidescrollers to use the large sprite with fewer bugs.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.55 Alpha | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  3. #3
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    283
    Level
    6
    vBActivity - Bars
    Lv. Percent
    19.62%
    Daily Activity
    0%
    Weekly Activity
    0.53%
    Monthly Activity
    0.48%
    For the moment, I'm using a script to fake it. It isn't perfect, but it's the only solution available.

  4. #4
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,264
    Mentioned
    107 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,248
    Level
    20
    vBActivity - Bars
    Lv. Percent
    64.12%
    Daily Activity
    0%
    Weekly Activity
    19.9%
    Monthly Activity
    27.72%
    Quote Originally Posted by ywkls View Post
    For the moment, I'm using a script to fake it. It isn't perfect, but it's the only solution available.

    Many bugs have methods to circumvent them, but that doesn't mean that we shouldn't try to squash the things.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.55 Alpha | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  5. #5
    IPN User Tamamo's Avatar
    Join Date
    May 2011
    Location
    Kobe
    Age
    29
    Posts
    901
    Mentioned
    100 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,406
    Level
    22
    vBActivity - Bars
    Lv. Percent
    92.01%
    Daily Activity
    0%
    Weekly Activity
    2.29%
    Monthly Activity
    15.79%
    What it does is make Link's collision rectangle 1 full tile 16x16 pixels.

  6. #6
    IPN User Tamamo's Avatar
    Join Date
    May 2011
    Location
    Kobe
    Age
    29
    Posts
    901
    Mentioned
    100 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,406
    Level
    22
    vBActivity - Bars
    Lv. Percent
    92.01%
    Daily Activity
    0%
    Weekly Activity
    2.29%
    Monthly Activity
    15.79%
    @ZoriaRPG
    Actually those settings work just fine, I just tested it.

  7. #7
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    283
    Level
    6
    vBActivity - Bars
    Lv. Percent
    19.62%
    Daily Activity
    0%
    Weekly Activity
    0.53%
    Monthly Activity
    0.48%
    Quote Originally Posted by Tamamo View Post
    @ZoriaRPG
    Actually those settings work just fine, I just tested it.
    What settings are you talking about? I can create an example quest pretty quickly that demonstrates that things like spikes, fireballs and enemies don't seem to affect anything but the bottom of a 16 x 32 sprite.

  8. #8
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,264
    Mentioned
    107 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,248
    Level
    20
    vBActivity - Bars
    Lv. Percent
    64.12%
    Daily Activity
    0%
    Weekly Activity
    19.9%
    Monthly Activity
    27.72%
    Quote Originally Posted by Tamamo View Post
    @ZoriaRPG
    Actually those settings work just fine, I just tested it.
    I know they work in overhead view, to give a larger hitbox, but the settings are misleading, as in sideview, the entire sprite should be the hitbox.

    I think the easiest change would be to change the hitbox dimensions for Link in sideview mode, in general, as he should have a 16x16 hitbox by default in sideview, which can be 16x32 in large sprite mode.

    Once we implement Link->Extend and hitbox modification, it'll be solved too, but we might be able to push the above change change into the next build.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.55 Alpha | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  9. #9
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    35
    Posts
    3,366
    Mentioned
    174 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,137
    Level
    24
    vBActivity - Bars
    Lv. Percent
    20.77%
    Daily Activity
    0%
    Weekly Activity
    0.53%
    Monthly Activity
    1.27%
    People use large sprites in different ways. Some people want a 16x32 Link, some want 16x24, some want 16x18. Enlarging the hitbox would work better in some cases and worse in others.
    [téknolŕiz]

    ffcscript.zh 1.1.1 - Updated 2014-08-19
    ghost.zh 2.8.2 - Updated 2017-09-10
    tango.zh 1.3.1 - Updated 2017-12-27

  10. #10
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,264
    Mentioned
    107 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,248
    Level
    20
    vBActivity - Bars
    Lv. Percent
    64.12%
    Daily Activity
    0%
    Weekly Activity
    19.9%
    Monthly Activity
    27.72%
    Quote Originally Posted by Saffith View Post
    People use large sprites in different ways. Some people want a 16x32 Link, some want 16x24, some want 16x18. Enlarging the hitbox would work better in some cases and worse in others.
    That's my general fear with hardcoding that kind of change; namely: 'What will this break?'.

    Ideally, we'll just make sizing Link's hitbox viable.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.55 Alpha | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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