Mar-05-2020, 08:39 AM
I certainly need to change character movement to vectors to add better physics if nothing else. Everything thing is done with rect.x/y.
On another note, I suspect that pygame's display update might be built to ignore thing too far off screen and here's why:
I built a boss battle, and when the boss dies tumbles down rotating covered in explosions. The victory music and screen text are triggered when the dead boss sprite has fallen a certain amount. It triggers the victory stuff, and kills the sprite. What happened however, is that one time as the boss's body was falling I flew out of the room and away and the text and music didn't come. So I flew back in and the boss finished falling and the music came. It was like when the boss's body was far enough off screen the sprite didn't update, and only started again when I got close enough to it. I can replicate it and screen cap it, but I'm sure you understand what I'm saying.
Have you noticed or heard of this? Everything works perfectly if you stay in the room, near the boss sprite.
On another note, I suspect that pygame's display update might be built to ignore thing too far off screen and here's why:
I built a boss battle, and when the boss dies tumbles down rotating covered in explosions. The victory music and screen text are triggered when the dead boss sprite has fallen a certain amount. It triggers the victory stuff, and kills the sprite. What happened however, is that one time as the boss's body was falling I flew out of the room and away and the text and music didn't come. So I flew back in and the boss finished falling and the music came. It was like when the boss's body was far enough off screen the sprite didn't update, and only started again when I got close enough to it. I can replicate it and screen cap it, but I'm sure you understand what I'm saying.
Have you noticed or heard of this? Everything works perfectly if you stay in the room, near the boss sprite.