Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Laggy Game Movement
Post: RE: Laggy Game Movement

(Jul-19-2022, 11:14 PM)Windspar Wrote: First rule of game programming. Never use the sleep command. Delta is use for smooth movement. How would you go about replacing all of my code involving the s...
game_slayer_99 Game Development 12 4,383 Jul-20-2022, 12:05 AM
    Thread: Laggy Game Movement
Post: RE: Laggy Game Movement

(Jul-19-2022, 12:05 PM)metulburr Wrote: Bottlenecks in programs can cause odd issues. Some operating systems may have issues while others do not. Exe will carry improper coding issues along with it....
game_slayer_99 Game Development 12 4,383 Jul-19-2022, 07:51 PM
    Thread: Laggy Game Movement
Post: RE: Laggy Game Movement

(Jul-19-2022, 12:10 AM)Windspar Wrote: Most of the time it because you didn't use delta or/and floats . Both these will effect movement. Without code it be hard to tell. I can understand how fault...
game_slayer_99 Game Development 12 4,383 Jul-19-2022, 12:49 AM
    Thread: Laggy Game Movement
Post: Laggy Game Movement

I've noticed that the movement in my Pong game is experiencing a strange amount of lag when I start the game up in Python, despite coding it to run at 60 fps. I converted the game to an .exe file and ...
game_slayer_99 Game Development 12 4,383 Jul-18-2022, 09:55 PM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

I was able to resolve the issue. I moved all sound file loading commands to a single class so that they weren't being loaded every time the sound file is played. I also deleted the line of code that m...
game_slayer_99 Game Development 13 7,649 Dec-09-2021, 12:39 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

I also just noticed that I am unpausing the main track every single time the main loop restarts in game_functions.py, line 12. Could this hurt my performance as well?
game_slayer_99 Game Development 13 7,649 Nov-26-2021, 06:53 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

(Nov-25-2021, 02:33 PM)metulburr Wrote: You really should use github so people can run the code without having to downloaded every single file. as well as have access to the images.I've attached all...
game_slayer_99 Game Development 13 7,649 Nov-26-2021, 12:56 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

"This is "a" bottleneck, but maybe not "the" bottleneck. You are loading the wav files every single time you play them instead of saving it as an object. Every single time the ball hits the wall it ha...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 11:08 PM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

(Nov-25-2021, 02:33 PM)metulburr Wrote: You really should use github so people can run the code without having to downloaded every single file. as well as have access to the images. metulburr@metu...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 09:37 PM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

(Nov-25-2021, 03:30 AM)nilamo Wrote: Quote: while True: gf.check_events(player, pp_settings) clock.tick(60) if pp_settings.game_active: enemy.update() ...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 03:34 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

(Nov-25-2021, 03:11 AM)nilamo Wrote: It sounds like you're running it within PyCharm... does this also happen if you run it from the terminal? Do you have any while loops? Not responding is differ...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 03:24 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

Here are the rest of the files.
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 03:20 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...

(Nov-25-2021, 03:11 AM)nilamo Wrote: It sounds like you're running it within PyCharm... does this also happen if you run it from the terminal? Do you have any while loops? Not responding is differ...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 03:18 AM
    Thread: My game's code works but Python still freezes at random intervals.
Post: My game's code works but Python still freezes at r...

I've been working on my own version of Pong and was able to get everything working properly. I get no error messages in PyCharm prior to running it and am able to play it for a short time before Pytho...
game_slayer_99 Game Development 13 7,649 Nov-25-2021, 02:42 AM
    Thread: Can't convert integer values to float values for Pong
Post: Can't convert integer values to float values for P...

I've been working on my own version of Pong, and at the moment, I have been working on getting the ball to bounce off of the four sides of the screen. The ball successfully bounces off each side, but ...
game_slayer_99 Game Development 1 1,570 Nov-18-2021, 06:37 AM

User Panel Messages

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