ZeGGamer1
New member
Hello all, if you were wondering how to change the amount of points you get when you kill an enemy, collect a coin, or more, this is for you. (Note, I have yet to test this in all modules but this is more of a coding tutorial than a comprehensive guide.)
Step 1: Find the Score Location.
The most common place you would need for changing how many point you get for any given action would be in the Handle script for enemy collision and damage, or for coins, you would go to the Collectible just for score script. then you will want to find the point where it adds value to the score for instance, it should look something like this
AddValue #$08, myScore, #$01, #$00
Step 2: Break it down.
The two most important parts are the pair of Hexadecimal numbers after myScore. you can look at them like this.
AddValue #$08, myScore, # of points, position the points go to.
Step 3: how to use the Information.
In the following examples I will show what value will be added to the myScore value.
AddValue #$08, myScore, #$01, #$00
Gives the player one point in the ones place, so you would get 1 point
AddValue #$08, myScore, #$01, #$02
Gives the player one point in the hundreds place, so you would get 100 points
AddValue #$08, myScore, #$05, #$00
Gives the player five points in the ones place, so you would get 5 points
AddValue #$08, myScore, #$05, #$01
Gives the player five points in the tens place, so you would get 50 points
Note: you should generally stick with numbers 0-9 when adding points in Hexadecimal, because even though it will still work if you have something like this, (AddValue #$08, myScore, #$0a, #$03) it is a little difficult for anyone not an ASM pro to read it.
Hope this helps someone.
Step 1: Find the Score Location.
The most common place you would need for changing how many point you get for any given action would be in the Handle script for enemy collision and damage, or for coins, you would go to the Collectible just for score script. then you will want to find the point where it adds value to the score for instance, it should look something like this
AddValue #$08, myScore, #$01, #$00
Step 2: Break it down.
The two most important parts are the pair of Hexadecimal numbers after myScore. you can look at them like this.
AddValue #$08, myScore, # of points, position the points go to.
Step 3: how to use the Information.
In the following examples I will show what value will be added to the myScore value.
AddValue #$08, myScore, #$01, #$00
Gives the player one point in the ones place, so you would get 1 point
AddValue #$08, myScore, #$01, #$02
Gives the player one point in the hundreds place, so you would get 100 points
AddValue #$08, myScore, #$05, #$00
Gives the player five points in the ones place, so you would get 5 points
AddValue #$08, myScore, #$05, #$01
Gives the player five points in the tens place, so you would get 50 points
Note: you should generally stick with numbers 0-9 when adding points in Hexadecimal, because even though it will still work if you have something like this, (AddValue #$08, myScore, #$0a, #$03) it is a little difficult for anyone not an ASM pro to read it.
Hope this helps someone.