Flea Game and some help needed (demo)

wallmasterr

Active member
oo where are those saved?
myProject.MST.0

Ah found it , no none of them were any forther on :( il just redo it just dono what i did wrong.
 

wallmasterr

Active member
lives%20glitch.PNG

Anyone know how to fix this? When lives go below 90 it uses weird tiles from the sheet
 

dale_coop

Moderator
Staff member
if you have a more than 1 digit life system, you need to modify the player lose live script.

instead of checking
Code:
	DEC myLives
	LDA myLives
	BNE gameNotOver

You will need to test each individual digits (and use SubtractValue instead of DEC), something like that :
Code:
	;;  DEC myLives
	SubtractValue #$02, myLives, #$01, #$00 ;;Subtract 1 from the Ones digit
	;; first, checking the tenths:
	LDA myLives+1
	BNE gameNotOver
	;; if the tenth digit is zero, then checking the units:
	LDA myLives
	BNE gameNotOver
 

wallmasterr

Active member
Im trying to get the blood score to reset when you die in a level as if u didint get any in that level.

Im thinking of attaching the save current blood into an empty hud element during the warp script.
Then in the lose life script setting curretn score to saved score.

how would i go about this in assembly and would it work like I'm thinking?

Warp script pseudo code:
;do i need to load in the vars i need?
Load myScore
Load myScoreSave
; savescore
myScoreSave = myScore

Lose life script:
;do i need to load in the vars i need?
Load myScore
Load myScoreSave
;set saved score to current score
myScore = myScoreSave
 

dale_coop

Moderator
Staff member
It will not be very simple...
Your score variable is a HUD variable displayed on your HUD. And because it is displayed as four (0-9) digits, in the code, you have to access via
Code:
	LDA myScore	;; to read/load the value corresponding to the units
Code:
	LDA myScore+1	;; to read/load the value corresponding to the tenths
Code:
	LDA myScore+2	;; to read/load the value corresponding to the hundreds
And :
Code:
	LDA myScore+3	;; to read/load the value corresponding to the thousands

So if you use another HUD variable, you might need to display it as 4 digits, too (or mabe use 4 differents variables?)

In defintiive, when warping (or checkpoint), the code would be like:
Code:
	LDA myScore
	STA myScoreSave
	LDA myScore+1
	STA myScoreSave+1
	LDA myScore+2
	STA myScoreSave+2
	LDA myScore+3
	STA myScoreSave+3

And on losing life, it would be (the opposite):
Code:
	LDA myScoreSave
	STA myScore
	LDA myScoreSave+1
	STA myScore+1
	LDA myScoreSave+2
	STA myScore+2
	LDA myScoreSave+3
	STA myScore+3
 

wallmasterr

Active member
Thanks again that worked :)
I wanted to put it on warp instead of the checkpoint as the checkpoint is accessible in the level and player could collect all the stuff then hit the checkpoint and die and do it all over again. They can go in and out of levels as much as they want at the moment anyway so might not matter.
 

Mugi

Member
i like the second one the most.
it's nice to have the cartridge in the picture, but the 3rd picture is way too generic and the 4th picture doesn't do justice for that amazing artwork.
 

Dirk

Member
I cast my vote for pic 2 too. The NES cartridge and box immediately catch my attention and I like the big flea artwork.
 

wallmasterr

Active member
Iv been thinking about making an expencive collectors teir with a statue. Do you think anyone would pay alot more for this?
render1.png
 
Top Bottom