☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
Computers & IT
>
Programming & Development
> Python.
Add Reply
New Topic
New Poll
Views: 359
Replies: 2
Track Topic
leon123123
Member
Posts: 7,903
Joined: Aug 27 2015
Gold
:
11.85
Warn: 40%
#1
Aug 23 2017 05:46pm
How can i follow like a camera, wheres my turtle goes? Like it is always in the center, when it moves.
import turtle
This post was edited by leon123123 on Aug 23 2017 05:47pm
carteblanche
Member
Posts: 32,925
Joined: Jul 23 2006
Gold
:
3,804.50
#2
Aug 23 2017 06:45pm
https://docs.python.org/2/library/turtle.html#turtle.setworldcoordinates
have you tried that?
leon123123
Member
Posts: 7,903
Joined: Aug 27 2015
Gold
:
11.85
Warn: 40%
#3
Aug 24 2017 10:22am
Quote (carteblanche @ Aug 24 2017 02:45am)
https://docs.python.org/2/library/turtle.html#turtle.setworldcoordinates
have you tried that?
wn = turtle.Screen()
wn.bgpic('star.png')
wn.reset()
wn.setworldcoordinates(-50,-7.5,50,7.5)
...for x in range(72):
.......left(10)
...for x in range(8):
.......left(45); fd(2)
it says in the error:
left not defined oO
This post was edited by leon123123 on Aug 24 2017 10:23am
Go Back To
Programming & Development
Topic List
Add Reply
New Topic
New Poll
© 2003-2026 d2jsp
Contact