Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with snake game
#3
Hi, thanks for your help. After reading your explanation it was clear as day. Didn't realize that because I set the change of the snake to 10 it could never be like 249 or something like that. I also put your print function in my loop and I think it only prints out the x coordinate if x coordinates of both objects are the same. I don't however understand, how you put a conditional in the print statement like that. Could you please explain that to me. It would be much appreciated.
Reply


Messages In This Thread
help with snake game - by blacklight - Jul-24-2020, 07:33 PM
RE: help with snake game - by nilamo - Jul-25-2020, 09:56 PM
RE: help with snake game - by blacklight - Jul-26-2020, 10:27 PM
RE: help with snake game - by nilamo - Jul-30-2020, 01:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to add segments to the snake body blacklight 1 2,972 Sep-13-2023, 07:33 AM
Last Post: angelabarrios
  [PyGame] Snake game: how to get an instance for my snake's body multiple times? hajebazil 2 2,225 Jan-30-2022, 04:58 AM
Last Post: hajebazil
  Snake Game - obstacle problem Samira 3 5,768 Oct-31-2019, 02:58 PM
Last Post: Samira
  [PyGame] Made my first Python program: Snake. Please help me improve it andrerocha1998 7 6,324 Feb-19-2019, 07:08 PM
Last Post: Windspar
  Creating Snake game in Turtle Shadower 1 8,703 Feb-11-2019, 07:00 PM
Last Post: woooee
  [PyGame] Basic Snake game (using OOP) PyAlex 1 12,653 Sep-10-2018, 09:02 PM
Last Post: Mekire
  [PyGame] Snake not changing directions in Snake Game Bjdamaster 4 5,057 Aug-13-2018, 05:09 AM
Last Post: Bjdamaster
  [PyGame] Snake controls not working jakegold98 5 6,562 Dec-12-2017, 01:45 AM
Last Post: Windspar

Forum Jump:

User Panel Messages

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