Python Forum
Newbie Turtle if/then coordinates Problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie Turtle if/then coordinates Problem
#2
The second if block will never be executed. If ball.xcor () returns anything greater that 390 then ball.setx () will reset it to 390. So, when you get to the second if then xcor will always be exactly 390 or below.
Reply


Messages In This Thread
RE: Newbie Turtle if/then coordinates Problem - by BashBedlam - Jun-22-2021, 01:05 PM

Forum Jump:

User Panel Messages

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