User Tag List

Results 1 to 6 of 6

Thread: NPCs out of bounds

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,765
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.82%
    You can move HitXOffset and DrawXOffset, coupled with HitYOffset and DrawYOffset--instead of raw X, and Y--to do this, by script.

    Now that we have npc scripts, I would prefer not to make the guys.cpp stuff any more absurd.

  2. #2
    Keese Just registered
    Join Date
    Jan 2018
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    315
    Level
    6
    vBActivity - Bars
    Lv. Percent
    49.9%
    Quote Originally Posted by ZoriaRPG View Post
    You can move HitXOffset and DrawXOffset, coupled with HitYOffset and DrawYOffset--instead of raw X, and Y--to do this, by script.

    Now that we have npc scripts, I would prefer not to make the guys.cpp stuff any more absurd.
    Yes, I could keep the actual NPC on screen and just draw and hit offset, but then I would have to do weird things to the NPC behavior functions I wrote when it comes to them bumping into walls and things like that..
    It is not that drawing offscreen or otherwise having their hitboxes offscreen is the issue, it is the fact that ZC erases the NPC when it goes offscreen, and I would have to write up a method to save their current stats and then put them back onto the screen after they are erased.
    Last edited by Downloader; 12-25-2018 at 03:08 PM.

  3. #3
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,765
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.82%
    Quote Originally Posted by Downloader View Post
    Yes, I could keep the actual NPC on screen and just draw and hit offset, but then I would have to do weird things to the NPC behavior functions I wrote when it comes to them bumping into walls and things like that..
    It is not that drawing offscreen or otherwise having their hitboxes offscreen is the issue, it is the fact that ZC erases the NPC when it goes offscreen, and I would have to write up a method to save their current stats and then put them back onto the screen after they are erased.
    Perhaps in the future, but for now, the addition of all of the new script types, and other npc stuff is taking its toll on th e shreds of my sanity.

    When \the new script stuff is finalised, then, I may look into this.

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