Discuss Scratch

Leo3333925
Scratcher
16 posts

My Game's Shop


That is the image of my game's shop. The code is kinda complex. Every time you upgrade, it costs more, and it maxes out at 4. The gun speed starts at 1 second in-between each shot. I will show the code for the shop, and the bullet.



This is my shop code. I'm 99.99% sure that there is a better way to do this, but this is how I did it. If there is, and you know how, please reply and tell me. I am looking for feedback and ideas. If you have anything to say, please do. I would like to hear it, as I am relatively new and not smart. The reason for all the code is because the game has a save system, and I have no better way of doing it.



This is the code for the gun. Well, not the gun, but the bullet. You get the idea. It is very simple, and the gun fire rate variable is very simple. When the gun is level 1 (upgraded once), the upgrade would have subtracted 0.1 from the starting value, 1. This goes for all the levels.

If you made it this far, keep in mind that I am dumb, and this is probably the worst way to do these things. I am really proud of this feature, of the entire game even, so please, check it out. The game is called Shooter Beta V 0.25. The link is https://scratch.mit.edu/projects/801482462/

Signing off of the forums for now, I will work on other parts of the game. -Leo3333925

Last edited by Leo3333925 (Feb. 12, 2023 23:43:59)

Powered by DjangoBB