I would like to propose the implementation of : "playerdied", in the same vein as : "playerhit" and : "playerhurt". The main use case for this would be where ammo could be reset, score could be deducted, or health could be set to a different value than the default at the beginning of a new life. Currently, checking for deaths is not particularly reliable, as all you can really do (of which I'm aware) is listen to : "playerhurt" and see if the player has one fewer life than the last time it was called, and that's assuming the player hasn't since gained a life.
Report ID | 810 | Title | : "playerdied" label |
Product | MegaZeux Feature Requests | Status | UNFILED (Severity 0 - None Assigned) |
Version | - | Fixed in | - |
Page 1 of 1
Report ID #810: : "playerdied" label
Page 1 of 1
Replies (1 - 2)
#2 ThDPro
Posted 26 July 2020 - 04:53 PM
it's also an option to check lives in this fashion:
set "local1" "lives" : "l" wait 1 if "local1" = "lives" "l" set "local1" "lives" goto "#DIED_SUBROUTINE" goto "l" : "#DIED_SUBROUTINE" [ "ive been killed" goto "#return"
original soundtracks
Better Than Nothing - DOMINATION - Commander Keen: Heroes Lost - Welkin - A Confectioner's Recipe - random ThDPro music stuff
<Risu21121> if you're not going to make a good game, you might as well make a blatantly racist one.
<Kuddy> Testicles.
"Where are my folder?" - KKairos
Better Than Nothing - DOMINATION - Commander Keen: Heroes Lost - Welkin - A Confectioner's Recipe - random ThDPro music stuff
<Risu21121> if you're not going to make a good game, you might as well make a blatantly racist one.
<Kuddy> Testicles.
"Where are my folder?" - KKairos
#3 Lachesis
Posted 08 August 2020 - 06:35 PM
A check like that would work for most cases, but I think Kewlio was specifically concerned about the edge case where you gain a life at the same time you lose a life (that code will fail to detect it). It's a silly edge case but one I can imagine happening (rarely). I don't really have a problem with adding this as a built-in label.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
Page 1 of 1
1 User(s) are reading this issue
1 Guests and 0 Anonymous Users
Powered by IP.Tracker 1.3.2 © 2025 IPS, Inc.