Python Forum
[PyGame] Ammo is random, but it shouldn't
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Ammo is random, but it shouldn't
#2
(Oct-04-2019, 10:29 AM)Piethon Wrote: I've set the SHURIKAN_AMMO to 20, and I can shoot 2 times. When it is at 500, I can shoot like 56 times.

The only thing i see out of place is your shoot method is indented too much, but you possibly accidentally did that when posting. You would have to make a small example of your code that illustrates the problem. Or simply put your entire code on github so that we can run it. There are a lot of other variables that are missing that could effect it.
Recommended Tutorials:
Reply


Messages In This Thread
Ammo is random, but it shouldn't - by Piethon - Oct-04-2019, 10:29 AM
RE: Ammo is random, but it shouldn't - by metulburr - Oct-04-2019, 11:12 AM
RE: Ammo is random, but it shouldn't - by Piethon - Oct-04-2019, 02:43 PM
RE: Ammo is random, but it shouldn't - by metulburr - Oct-04-2019, 02:54 PM
RE: Ammo is random, but it shouldn't - by Piethon - Oct-05-2019, 08:57 AM
RE: Ammo is random, but it shouldn't - by metulburr - Oct-05-2019, 11:36 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020