Game Over Special Screen

User avatar
Raftronaut
Posts: 295
Joined: Mon Sep 03, 2018 4:47 pm

Re: Game Over Special Screen

Post by Raftronaut » Fri Mar 08, 2019 6:21 pm

However, i encountered another error. I got the game over script working, but my HUD is showing random tiles under my player lives variable. Is it possible the code isn't telling the game how many lives to award the newly spawned player? Is it possible to add this?
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
dale_coop
Posts: 4376
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Game Over Special Screen

Post by dale_coop » Fri Mar 08, 2019 7:25 pm

You have the glitch when? On the GameOver screen? After that? When restarting the game?
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Raftronaut
Posts: 295
Joined: Mon Sep 03, 2018 4:47 pm

Re: Game Over Special Screen

Post by Raftronaut » Fri Mar 08, 2019 9:34 pm

Yes,

Ok, after testing further I discovered that the code works correctly when I press the start button to reset. The HUD functions correctly after respawn.
What I had done is set a timer for an NPC monster to serve as some text on my Game Over screen. At the end of the timer I have the NPC performing a RESTART GAME action so that my GAME OVER JINGLE does not loop around and play again. This action resets my game, but my HUD Is glitching and showing random hud tiles instead of the numbers I used to keep count on player lives. I have screen shots to illustrate, but I am not sure how to post images on the forums yet.

The action for "reset game" in the monsters > Object Details> Actions ... where can I find this script? In My routines folder? I assume the script is missing an action step or something...
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
dale_coop
Posts: 4376
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Game Over Special Screen

Post by dale_coop » Sat Mar 09, 2019 9:59 am

The action for "reset game" is set in the "Project Settings > Script Settings"... might be the "Action Anim End 7" element.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
dale_coop
Posts: 4376
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Game Over Special Screen

Post by dale_coop » Wed May 22, 2019 9:31 pm

Edit one of my script in the first page, in order to fix a warp coords in the Game Over Screen (now it should use the warp in coords x,y set for the screen).
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Raftronaut
Posts: 295
Joined: Mon Sep 03, 2018 4:47 pm

Re: Game Over Special Screen

Post by Raftronaut » Wed Jun 26, 2019 2:01 am

dale_coop wrote:
Sat Mar 09, 2019 9:59 am
The action for "reset game" is set in the "Project Settings > Script Settings"... might be the "Action Anim End 7" element.
Dale, I am still having some trouble here, My hud updates to odd characters from the HUD chr file whenever I allow my game over screen NPCS to use the reset game action.

Can you help me understand where I can find this script and share it?
restart.PNG
restart.PNG (43.8 KiB) Viewed 1017 times
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
dale_coop
Posts: 4376
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Game Over Special Screen

Post by dale_coop » Wed Jun 26, 2019 7:36 am

Hey Raftronaut,

Try using only one action:
the "end animation" action : executes the action when the animation (by "animation", I mean a sequence of animation frames) is done (you need to set the animation speed).
the "end action" action : executes the action when the timer is done (you need to set the Timer value).
Don't set both.

Then, which HUD updates makes problem? Health? Lives? Score? Would you share a screenshot (or a video)?
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Raftronaut
Posts: 295
Joined: Mon Sep 03, 2018 4:47 pm

Re: Game Over Special Screen

Post by Raftronaut » Wed Jun 26, 2019 6:45 pm

dale_coop wrote:
Wed Jun 26, 2019 7:36 am
Hey Raftronaut,

Try using only one action:
the "end animation" action : executes the action when the animation (by "animation", I mean a sequence of animation frames) is done (you need to set the animation speed).
the "end action" action : executes the action when the timer is done (you need to set the Timer value).
Don't set both.

Then, which HUD updates makes problem? Health? Lives? Score? Would you share a screenshot (or a video)?
Ahhh, That is a really helpful explanation, I will correct this and recheck, if I am still having trouble I will post a video.


thank you, as always
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
Raftronaut
Posts: 295
Joined: Mon Sep 03, 2018 4:47 pm

Re: Game Over Special Screen

Post by Raftronaut » Sat Jun 29, 2019 2:06 am

dale_coop wrote:
Wed Jun 26, 2019 7:36 am

Try using only one action:
the "end animation" action : executes the action when the animation (by "animation", I mean a sequence of animation frames) is done (you need to set the animation speed).
the "end action" action : executes the action when the timer is done (you need to set the Timer value).
Don't set both.

Then, which HUD updates makes problem? Health? Lives? Score? Would you share a screenshot (or a video)?
Hey Dale, I tried selecting only end animation on the NPC actions and still get the same results.
game over reset.PNG
game over reset.PNG (52.56 KiB) Viewed 973 times
If I press the start button at the game over screen the game resets and the HUD works correctly. However, If I rely on the RESTART GAME end action, the HUD stops counting player lives and starts presenting odd tiles from the HUD CHR file. You can see here after my timer lapses on the game over screen, the HUD starts to misbehave after reset. [url][/url]

If I am correct, the 'end action' here is triggering a script I have under routines\basic\system\timerEndScripts\Timer_DoPlayerDeath.asm

Code: Select all

	;;;; Handle loss of a life versus actual RESET death, simple.
	JSR LoseLife
I assume this is triggering a macro I have put in place, but i am a little lost on how to find it now.
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
dale_coop
Posts: 4376
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Game Over Special Screen

Post by dale_coop » Sat Jun 29, 2019 10:02 pm

I think your life is not set back to “3” when your game restart. So it goes below zero, the hud displays that (incorrect) value.

I am not on my pc today, I won’t be able to help you on that but...
A solution would be to make a simple script EndRimer_RESET script, with just a:

Code: Select all

JMP RESET
And assign that reset script to the “end action” corresponding to “Reset Game”.

Else I am take a look tomorrow ;)
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
Post Reply