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.
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.
http://www.zoriarpg.com/zc/LoE_Userbar.png http://zoriarpg.com/zc/EiyuuUserbar.png
http://www.zoriarpg.com/zc/CIS_Original.pnghttp://www.zoriarpg.com/zc/CIS_II_Userbar.png
Latest ZC 2.53 (Win32) | (Technical Specification | Changelog)
Latest ZC 2.55(Win32) | 2.55 Modules | (Techical Specification | Changelog)
ZC Source Code | ZClaunch Source Code
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 | ZC Dev & Builds | ARCHIVED ZC Dev & Builds | YouTube Channel | Quests and ZScript Repository
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.
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.
http://www.zoriarpg.com/zc/LoE_Userbar.png http://zoriarpg.com/zc/EiyuuUserbar.png
http://www.zoriarpg.com/zc/CIS_Original.pnghttp://www.zoriarpg.com/zc/CIS_II_Userbar.png
Latest ZC 2.53 (Win32) | (Technical Specification | Changelog)
Latest ZC 2.55(Win32) | 2.55 Modules | (Techical Specification | Changelog)
ZC Source Code | ZClaunch Source Code
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 | ZC Dev & Builds | ARCHIVED ZC Dev & Builds | YouTube Channel | Quests and ZScript Repository
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)