Python Forum
I want to add a bullet function to my game. how would i go about it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to add a bullet function to my game. how would i go about it?
#2
I would write Bullet as a subclass of Sprite. When firing a bullet I would add a bullet object to a Group. The bullet group will keep track of all the fired bullets, calling their update methods and removing bullets that collide with another sprite (like a player).
Reply


Messages In This Thread
RE: I want to add a bullet function to my game. how would i go about it? - by deanhystad - Jan-02-2024, 06:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bullet firing skillamac 1 2,548 Aug-07-2020, 09:56 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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