Python Forum
creating an object at another objects position
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating an object at another objects position
#4
You cannot do this:
while True:
    r.mainloop()
    r.update()
    for Laser in Laser.lasers:
        Laser.update()
        time.sleep(0.05)
mainloop is a blocking function call. It will never return. You will never call r.update() and you will never call any of your laser update code.

If you want to make a game you are much better off starting with PyGame or some something similar.
Reply


Messages In This Thread
RE: creating an object at another objects position - by deanhystad - Feb-19-2021, 06:53 PM

Forum Jump:

User Panel Messages

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