Help me pease

im trying to make a “noise” system in my game (like harken from dod) where moving ups your sound and having too much kills you, and when your not moving, it lowers the sound, but the best way i could do it is “when press/relese (move) button increse sound by 1” but then it just gives 2 sound points even if your holding it for a long time, and then the decrese code is like “if mysprite velocity = 0 increse sound by -1” but its the same problem, it just removes 1 help plz (btw the kill code works so thats fine)

2 Likes

Try using the game update block! You can do something like this:

On game update every (x)ms:
If left button or right button pressed then:
Change sound by 1
Else
Chanhe sound by -1

Feel free to change the numbers to your liking!

(Welcome, fellow DoD player!)

2 Likes