arrow keys press down to get a big jump off enemy's head hold down to get a small jump off enemy's head Fixed custom score text PLAY THE OG
All custom score text by me I remixed the project to help tixixyo for custom score text Rest of the code is by tixixyo (Also, tixixyo, if you have any requests of some sort for the score text, lmk.) HS: 320 (Me) ---------------------------------------- For tixixyo ---------------------------------------- HOW IT WORKS: Four variables, each called, ones, tens, hundreds, and thousands are recorded. The ones variable goes up by 1 when bouncing on the brown enemy, 2 for the blue, and 4 for red. Whenever ones gets over the number 9, the tens is increased by 1 and the ones resets. Whenever the tens is over 9, the hundreds is increased by 1 and the tens resets. When thousands gets over 9, it stops all code. I then made eight custom text sprites, called ones, tens, hundreds, and thousands. The other four sprites are zeros. I made it so that the ones will forever set it's costume number to the ones variable, with each costume being assigned a number (costume 1 is the number one, costume two is two, etc.). It goes all the way up to nine. I did the same for the tens, hundreds, and thousands, except obviously assigning them to their matching variable. Now, I made a script that says when their assigned variable equals 0, it broadcasts a message and hides. This message makes the zero appear at that number's position and show. I did this with all the sprites. The message is called new, specifying how the number resets back to zero while increasing the number place after it. I don't know if this made sense. If anyone is confused, I'll be happy to clarify. Anyways, that's how to make custom score text in Scratch. Hope it helped!