Python Forum
[PyGame] Rect object penetrates wall on one side
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Rect object penetrates wall on one side
#3
Thanks for the suggestion, but excluding those lines just changes the problem from the left wall to the right wall.

Additionally, I dug through the web yesterday and did find one other person who had gone with a very similar solution to his problem, and he had also done it like I did with both if/else statements. Which just adds to my confusion as to why it wont work. Could it be that I'm not updating the graphics after those lines?

I did a trigger sequence where I print something every time the condition is correct, and I found that line 57-58 responds correctly, but the other ones didn't. It almost as if those lines never gets passed.
Reply


Messages In This Thread
Rect object penetrates wall on one side - by Jan_97 - Dec-30-2021, 08:52 PM
RE: Rect object penetrates wall on one side - by Jan_97 - Dec-30-2021, 10:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Make a wall in turtle module Jan_97 2 7,265 Aug-18-2021, 08:47 PM
Last Post: Jan_97
  [PyGame] printing integers on pygame.draw.rect Shyckh 1 2,550 Aug-22-2020, 11:44 AM
Last Post: metulburr
  rect object not loading BlueClaw 2 4,180 Dec-11-2019, 04:25 PM
Last Post: BlueClaw
  Multiple wall collision in pacman rustyjoe 4 4,178 Aug-11-2019, 08:08 AM
Last Post: rustyjoe
  [PyGame] pygame.draw.rect function stretches across the screen instead of moving BubblesTheGiraffe 2 3,725 Jun-11-2019, 08:32 PM
Last Post: metulburr
  [PyGame] assigning rect to sprite pfaber11 1 2,223 May-18-2019, 05:39 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