game freezes when player gets hurt

kevin81

Well-known member
I think we need a little more info than just that to help you find a solution. Which base module are you using? Have you been following one of the tutorials, and if so, which tutorial dit you follow, and did you follow it to the letter or did you divert from it at any point? At which point in the code does the game freeze up, ie which part of the script is being executed erroneously? What happens when the game freezes: does the screen glitch out, turn green or are all game assets frozen in place, and does the music (if any) keep on playing or does that freeze as well?
 

snow knights

New member
( sorry, i had trouble logging in for like a long time ) um i think the base module is adventure and i do not think i followed any tutorials, i can't give any information on the script because i have no clue how to even look at that, but giving the character only one heart seems to fix the problem.
 

DarthAT

Member
How was this solved? Currently having the same issue.


Currently I have:
My hud with myHealth variable set to max 8
My game object player details Health set to 3
My game object player action 7 set to Hurt
The monster strength set to 1
He should spin when hit and decrement the health by one, but it is not doing that, like I said game/screen freezes.

Any ideas?
Thanks in advance
 

DarthAT

Member
Incase anybody references this in the future.

The Element slots (0 - 7) in the HUD are hard coded in certain scripts. I had to edit the PlayerHurt_Health.asm file. At line 28, it said to UpdateHudElement #$02, but I actually had the myHealth variable in #$01. Once I made the change in the code everything is working great.
1668204029756.png
 

JollyShadow

Active member
Clearly the game has finally become sentient and is trying to protect the player from continuing to get hurt. Thank you rogue game for breaking the vicious cycle.
 
Top Bottom