Simple Python Turtle Graphics Game (Part 1)

  Рет қаралды 136,959

TokyoEdtech

TokyoEdtech

Күн бұрын

Пікірлер: 163
@disneyfannrkrb
@disneyfannrkrb 4 жыл бұрын
Omg game programming tutorials without having to learn a complicated engine along with programming consepts, thank you !!!how do u not have a million subs?
@p0part299
@p0part299 Жыл бұрын
For anyone who is having trouble with the delay instead of putting delay = raw_input() Instead use delay = input() This seemed to fix the problem for me
@TokyoEdTech
@TokyoEdTech Жыл бұрын
Thanks! This is one difference between Python 2 and Python 3.
@Yobootyho
@Yobootyho 9 ай бұрын
Holy crap thank you 🙏
@Yobootyho
@Yobootyho 9 ай бұрын
Was driving me crazy
@TokyoEdTech
@TokyoEdTech 9 ай бұрын
Keep on codin'!
@MitzukiFinest
@MitzukiFinest 7 жыл бұрын
Thank you for the lessons. I have just started Gcse Computer Science, and this helps a lot. Thanks again.
@MitzukiFinest
@MitzukiFinest 7 жыл бұрын
***** awesome! Thank you
@thelineoffire1422
@thelineoffire1422 7 жыл бұрын
FINALLY SOMETHING THAT ACTUALLY HELPS
@retrogamingbros8164
@retrogamingbros8164 8 жыл бұрын
Dude... Amazing, i'm just getting into coding!
@luxurious0346
@luxurious0346 7 жыл бұрын
Your the best I searched "most basic tutorial for Python game" It lead me to a website into coding AN ACTUAL APP
@views-nn5pk
@views-nn5pk 8 жыл бұрын
you teach better than my professor
@views-nn5pk
@views-nn5pk 8 жыл бұрын
Christian Thompson Can I ask you a quick question? So I'm trying to make a spiral image but I keep getting a TimeLimitError can you please help me. My code is ... import turtle colors=['lime','black','lime','black','lime',black'] wn=turtle.Screen () wn.bgcolor ('black') michael=turtle.Turtle () for x in range (360): michael.pencolor (colors [x%6]) michael.width (x/100+1) michael.forward (x) michael.left (59)
@aleale276
@aleale276 7 жыл бұрын
wow..... really i know more than you'd think
@serge791
@serge791 7 жыл бұрын
thx for helping im building a software
@hione4198
@hione4198 5 жыл бұрын
jk
@hariharanm2906
@hariharanm2906 6 жыл бұрын
wow awesome you've teached very nicely
@paraggaonkar2105
@paraggaonkar2105 5 жыл бұрын
This really helped me for my semester project.....thnks a lot.....keep making more videos...
@elarayin30
@elarayin30 6 ай бұрын
@TokyoEdTech what happens if when I place: ~ player.left(180) It takes like a second to fully be on 180 degrees and it isn't instantly?
@TokyoEdTech
@TokyoEdTech 6 ай бұрын
Do you have player.speed(0)?
@elarayin30
@elarayin30 6 ай бұрын
@@TokyoEdTech I didn't and now it works! Thanks for helping me out!
@elarayin30
@elarayin30 6 ай бұрын
@@TokyoEdTech I thought it was Visual Studio that messed it up
@TokyoEdTech
@TokyoEdTech 6 ай бұрын
@@elarayin30 Generally speaking, if you are a beginner, the problem is most likely you. Keep on codin'!
@kennethhular9572
@kennethhular9572 7 жыл бұрын
What notepad is that?
@stuffs3755
@stuffs3755 6 жыл бұрын
u are the bests!!! it it still works even in python 3!!
@stuffs3755
@stuffs3755 6 жыл бұрын
thanks!!
@stuffs3755
@stuffs3755 6 жыл бұрын
i turned it in to a mutiplayer game!!! my code is import turtle import math import random wn = turtle.Screen() wn.bgcolor("lightgreen") score = 0 player = turtle.Turtle() player.color("blue") player.shape("triangle") player.penup() player.speed(0) player2 = turtle.Turtle() player2.color("yellow") player2.shape("triangle") player2.penup() player2.speed(0) mypen = turtle.Turtle() mypen.penup() mypen.setposition(-300,-300) mypen.pendown() mypen.pensize(3) for side in range(4): mypen.forward(600) mypen.left(90) mypen.hideturtle() goal = turtle.Turtle() goal.color("red") goal.shape("circle") goal.penup() goal.speed(0) goal.setposition(-100, 100) goal2 = turtle.Turtle() goal2.color("red") goal2.shape("circle") goal2.penup() goal2.speed(0) goal2.setposition(-100, 100) goal3 = turtle.Turtle() goal3.color("red") goal3.shape("circle") goal3.penup() goal3.speed(0) goal3.setposition(-100, 100) speed2 = 1 def turnleft(): player2.left(30) def turnright(): player2.right(30) def increasespeed2(): global speed2 speed2 += 1 turtle.listen() turtle.onkey(turnleft, "a") turtle.onkey(turnright, "d") turtle.onkey(increasespeed2, "w") speed = 1 def turnleft(): player.left(30) def turnright(): player.right(30) def increasespeed(): global speed speed += 1 turtle.listen() turtle.onkey(turnleft, "Left") turtle.onkey(turnright, "Right") turtle.onkey(increasespeed, "Up") while True: player.forward(speed) if player.xcor() > 300 or player.xcor() < -300: player.right(180) if player.ycor() > 300 or player.ycor() < -300: player.right(180) d = math.sqrt(math.pow(player.xcor()-goal2.xcor(),2) + math.pow(player.ycor()-goal2.ycor(),2)) if d < 20 : goal2.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score) d = math.sqrt(math.pow(player.xcor()-goal3.xcor(),2) + math.pow(player.ycor()-goal3.ycor(),2)) if d < 20 : goal3.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score) d = math.sqrt(math.pow(player.xcor()-goal.xcor(),2) + math.pow(player.ycor()-goal.ycor(),2)) if d < 20 : goal.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score) player2.forward(speed2) if player2.xcor() > 300 or player2.xcor() < -300: player2.right(180) if player2.ycor() > 300 or player2.ycor() < -300: player2.right(180) d = math.sqrt(math.pow(player2.xcor()-goal2.xcor(),2) + math.pow(player2.ycor()-goal2.ycor(),2)) if d < 20 : goal2.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score) d = math.sqrt(math.pow(player2.xcor()-goal3.xcor(),2) + math.pow(player2.ycor()-goal3.ycor(),2)) if d < 20 : goal3.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score) d = math.sqrt(math.pow(player2.xcor()-goal.xcor(),2) + math.pow(player2.ycor()-goal.ycor(),2)) if d < 20 : goal.setposition(random.randint(-300, 300), random.randint(-300, 300)) score += 1 print(score)
@bhavania9265
@bhavania9265 5 жыл бұрын
*what editer do you use*
@shribhagwanmaurya9156
@shribhagwanmaurya9156 6 жыл бұрын
I don't use mac .i use windows so what should i use to do it
@fuadabodunrin7589
@fuadabodunrin7589 7 жыл бұрын
Hi i just completed the -"turtle.onkey(move_left,"Left") turtle.onkey(move_right,"Right")" and when i run the whole program everything is fine until i try move the triangle. I get a rainbow cursor that wont stop spinning. Can you help me please?
@soniferous
@soniferous 5 жыл бұрын
Very useful tutorial. Which IDE do you use?
@TokyoEdTech
@TokyoEdTech 2 жыл бұрын
These days I use Geany.
@AllAboutCode
@AllAboutCode 6 жыл бұрын
Which text editor is it??
@clashwithnumaan9210
@clashwithnumaan9210 4 жыл бұрын
Hey Chris...Have any tips for someone who wants to start a youtube channel regarding python games????
@clashwithnumaan9210
@clashwithnumaan9210 4 жыл бұрын
@@TokyoEdTech Thank you Chris you are truly INSPIRATION for me....
@noobtimespronoobtimespro1379
@noobtimespronoobtimespro1379 3 жыл бұрын
you are using python2 can you change it into python3?
@TokyoEdTech
@TokyoEdTech 3 жыл бұрын
Sure, I'll just take a couple of hours out of my day and do that for you.
@MarkFidell
@MarkFidell 3 жыл бұрын
@@TokyoEdTech I've just discovered your videos and was really enjoying your style and approach, but I've just read this and feel a bit disappointed. If you take the time to reply, at least be constructive. The person asking this question might not know that this is the same in both versions and being a noob worries that they might be learning the wrong thing. They might have meant can "They" change to using version 3 and it still work. A simple, helpful, response or no response would have been better than a sarcastic one that might put that person of asking questions or even feel the IT industry is hostile to new comers. After all the work you put into these videos I think you've let yourself down with this response.
@MarkFidell
@MarkFidell 3 жыл бұрын
@Noob times Pro Noob time Pro - Yes you can do this using Python3, I think :) - I'm a 20+ year IT vet, having done Cobol, Pascal, Delphi, C, Java, C++, Assembler, you name it, but just learning Python myself, we all have to start somewhere right, so I could be wrong, but I've just run through this with 3.9.5 and it worked exactly as expected.
@TokyoEdTech
@TokyoEdTech 3 жыл бұрын
@@MarkFidell Hi Mark. Thanks for the thoughtful feedback. Your point is well-taken. For a little context, I respond to all or nearly all requests for help. According to KZbin, I responded to around 7000 comments last year - that's 20 comments a day, every day for a year. My previous years were similar. Most people who post for help are polite and provide helpful information so that I can help. And most are appreciative. However, there is a small group that is hostile, demanding, or just plain annoying. I do occasionally let my exasperation show as I did above. If the person had written back with clarification, I would have been more helpful. Anyhoo, I'm human and I'm doing my best. Thanks again for the comment - I do appreciate and agree with it.
@mrnub4813
@mrnub4813 2 жыл бұрын
@@TokyoEdTech hey! I'm so sorry to be an annoyance. I'm wondering if you've covered this question yet. I would be interested in a python 3 version of this, but no worries if not possible
@faizanmostak8286
@faizanmostak8286 3 жыл бұрын
Thanks a lot! :)
@TokyoEdTech
@TokyoEdTech 3 жыл бұрын
No worries - happy to help!
@WopSalad
@WopSalad 7 жыл бұрын
thank you sooooooooo much this is a great channle
@thebakerganimations1114
@thebakerganimations1114 5 жыл бұрын
Hi in your space war game you use a different way to move and that any way I can do that to this method
@thebakerganimations1114
@thebakerganimations1114 5 жыл бұрын
@@TokyoEdTech thanks
@stardusttheprotogen
@stardusttheprotogen 3 жыл бұрын
when i wrote delay = raw_input("Press Enter to finish.") it gave me the error that raw_input is not defined
@TokyoEdTech
@TokyoEdTech 3 жыл бұрын
Change raw_input to input
@maleeshapramod1925
@maleeshapramod1925 6 жыл бұрын
What's your software name?
@joshuakay5917
@joshuakay5917 7 жыл бұрын
pls can you help me I did what u did I the start but it dosent want to work import turtle wn = turtle.Screen() wn.bgcolour("lightgreen") delay = raw_input("Press Enter to finish.")
@joshuakay5917
@joshuakay5917 7 жыл бұрын
it says its an attribute error and the module object has no attribute screen. and thanks for replying
@joshuakay5917
@joshuakay5917 7 жыл бұрын
Traceback (most recent call last): File "/home/pi/tuetlekhk.py", line 3, in wn = turtle.Screen() AttributeError: 'module' object has no attribute 'Screen' >>>
@joshuakay5917
@joshuakay5917 7 жыл бұрын
ive got a turtle .pyc
@joshuakay5917
@joshuakay5917 7 жыл бұрын
thanks it works now. You're a genius
@mlongecha3565
@mlongecha3565 7 жыл бұрын
I do have the same problem, I can see this programme of"turtle.py" where can I see it?
@beastgamerx5705
@beastgamerx5705 2 жыл бұрын
the raw input thing is not working for me what alts can i use?
@TokyoEdTech
@TokyoEdTech 2 жыл бұрын
Hiya, try input instead.
@beastgamerx5705
@beastgamerx5705 2 жыл бұрын
@@TokyoEdTech thanks soo much :)
@beastgamerx5705
@beastgamerx5705 2 жыл бұрын
@@TokyoEdTech thanks so much :)
@kiddkuru
@kiddkuru 2 жыл бұрын
i used wn.mainloop()
@danieldoescoding3712
@danieldoescoding3712 4 жыл бұрын
Hey I got a NameError on line 7 ( wn = bgcolor("lightgreen") ) it said that bgcolor is not defined and I don't really know how to define it so I'm just asking for tip or something
@danieldoescoding3712
@danieldoescoding3712 4 жыл бұрын
@@TokyoEdTech ok, i've stayed up until 1am playing minecraft and coding so my mind I probably couldn't tell the difference
@danieldoescoding3712
@danieldoescoding3712 4 жыл бұрын
@@TokyoEdTech also I think it's pretty cool that you posted this 5 years ago and still are answering questions in the comments
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
:)
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
Hello.
@vansh7724
@vansh7724 4 жыл бұрын
I play minecraft too
@enriqueguerena4559
@enriqueguerena4559 6 жыл бұрын
delay = raw_input("Press Enter to finish.") #this comes up as an error as "raw_input is not defined"
@enriqueguerena4559
@enriqueguerena4559 6 жыл бұрын
Do I have to define it?
@renatocintra2833
@renatocintra2833 6 жыл бұрын
that remove the error but when i press "enter" don't exit.
@enriqueguerena4559
@enriqueguerena4559 6 жыл бұрын
Thank you.
@chekystar
@chekystar 4 жыл бұрын
@@TokyoEdTech had the same problem tnx :)
@shivig6772
@shivig6772 5 жыл бұрын
Is this Python with turtle or pygame
@アリちゃんねる-v5l
@アリちゃんねる-v5l 4 жыл бұрын
Hello. Just another comment passin' by again! Last time I did the thing, everything was perfect but now... theres a weird error it says : Traceback (most recent call last): File "/Users/SomethingThatsPrivate/Documents/simpleandfirstgame.py", line 5, in wn = turtle.Screen() AttributeError: module 'turtle' has no attribute 'Screen' Do you know whats wrong? this is the script for the screen : import turtle import math import random #set up screen wn = turtle.Screen() wn.bgcolor("Royalblue") colors = ['darkgreen', 'Green', 'darkgreen', 'Green']
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
Hi - that is very odd... do you have a file in the same folder called turtle.py? If so, delete it.
@アリちゃんねる-v5l
@アリちゃんねる-v5l 4 жыл бұрын
@@TokyoEdTech oh wait! I did lol ty
@masterpaper3520
@masterpaper3520 7 жыл бұрын
can you make a turtle graphics game multilayer tutorial that would be so much help thanks. Let me know if you do :)
@masterpaper3520
@masterpaper3520 7 жыл бұрын
Christian Thompson yea i ment the second... thx for the info though ill check him out.
@camilomoreno1395
@camilomoreno1395 6 жыл бұрын
Hi, there just wondering why I'm getting this error. Any help would be greatly appreciated as iIdo not understand why it isn't working Traceback (most recent call last): File "C:/Users/ccami/OneDrive/Documents/turtle.py", line 2, in import turtle File "C:/Users/ccami/OneDrive/Documents\turtle.py", line 6, in wn = turtle.Screen() AttributeError: module 'turtle' has no attribute 'Screen'
@camilomoreno1395
@camilomoreno1395 6 жыл бұрын
Thank you so much for your prompt response.
@khanganh4083
@khanganh4083 2 жыл бұрын
When i write the delay variable, it keeps getting errors. Please help me
@TokyoEdTech
@TokyoEdTech 2 жыл бұрын
You need to share the code and the full error message.
@brandonkleiber8609
@brandonkleiber8609 8 жыл бұрын
I have just recently started coding, and when I tried to run this program I received an error that said it could not find any of the import commands. Is there a package I need to have to use this tutorial?
@brandonkleiber8609
@brandonkleiber8609 8 жыл бұрын
So this is my error message. /Users/Brandon/Desktop/turtle.py: line 2: import: command not found /Users/Brandon/Desktop/turtle.py: line 3: import: command not found /Users/Brandon/Desktop/turtle.py: line 4: import: command not found /Users/Brandon/Desktop/turtle.py: line 5: import: command not found /Users/Brandon/Desktop/turtle.py: line 8: syntax error near unexpected token `(' /Users/Brandon/Desktop/turtle.py: line 8: `wn = turtle.Screen()' code: #Turtle Graphics Game import turtle import math import random import os #Set up screen wn = turtle.Screen() wn.bgcolor("black") wn.tracer(3) #Borders mypen = turtle.Turtle() mypen.color("white") mypen.penup() mypen.setposition(-300,-300) mypen.pendown() mypen.pensize(3) for side in range(4): mypen.forward(600) mypen.left(90) mypen.hideturtle() #Create Player player = turtle.Turtle() player.color("blue") player.shape("triangle") player.penup() player.speed(0) #Create Goals maxGoals = 10 goals = [] for count in range(maxGoals): goals.append(turtle.Turtle()) goals[count].color("red") goals[count].shape("circle") goals[count].penup() goals[count].speed(0) goals[count].setposition(random.randint(-300,300),random.randint(-300,300)) #Set speed variable speed = 1 #define functions def turnleft(): player.left(30) def turnright(): player.right(30) def increasespeed(): global speed speed += 1 def isCollision(t1, t2): d = math.sqrt(math.pow(t1.xcor()-t2.xcor(),2)+math.pow(t1.ycor()-t2.ycor(),2)) if d 290 or player.xcor() < -290: player.right(180) #os.system("afplay bounce.mp3&") if player.ycor() > 290 or player.ycor() < -290: player.right(180) #os.system("afplay bounce.mp3&") #Move the goal for count in range(maxGoals): goals[count].forward(3) if goals[count].xcor() > 290 or goals[count].xcor() < -290: goals[count].right(180) #os.system("afplay bounce.mp3&") if goals[count].ycor() > 290 or goals[count].ycor() < -290: goals[count].right(180) #os.system("afplay bounce.mp3&") if isCollision(player, goals[count]): goals[count].setposition(random.randint(-290,290),random.randint(-290,290)) goals[count].right(random.randint(0,360)) #os.system("afplay bounce.mp3&")
@brandonkleiber8609
@brandonkleiber8609 8 жыл бұрын
Also, I use mac osx 10.11.3
@daddyhughes111
@daddyhughes111 7 жыл бұрын
This is great, thank you!
@daddyhughes111
@daddyhughes111 7 жыл бұрын
Will do :)
@thewildwalk4502
@thewildwalk4502 8 жыл бұрын
how do you run the game?on windows
@kamixresistance9587
@kamixresistance9587 3 жыл бұрын
Im using pyth9on idle 3 - whenever i run it i get the error Traceback (most recent call last): File "C:/Users/18554/AppData/Local/Programs/Python/Python36/turtle.py", line 1, in import turtle File "C:/Users/18554/AppData/Local/Programs/Python/Python36\turtle.py", line 2, in s=turtle.getscreen() AttributeError: module 'turtle' has no attribute 'getscreen' do you have any suggestions on how to fix this
@TokyoEdTech
@TokyoEdTech 3 жыл бұрын
You cannot call your program turtle.py - it then tries to import itself instead of the actual turtle module.
@kamixresistance9587
@kamixresistance9587 3 жыл бұрын
@@TokyoEdTech Thanks!
@animebadassmoments179
@animebadassmoments179 3 жыл бұрын
me to
@thewildwalk4502
@thewildwalk4502 8 жыл бұрын
how do you run with notepad++
@possumpig4754
@possumpig4754 8 жыл бұрын
guys, i had this problem. just do this: import turtle turtle.forward(15) turtle.right(90) turtle.forward(15)
@tankytitan1304
@tankytitan1304 4 жыл бұрын
Is is same for python 3
@teooyuh
@teooyuh 2 жыл бұрын
Please do a tutorial on how to convert your Python Turtle game to an .exe file :)
@TokyoEdTech
@TokyoEdTech 2 жыл бұрын
Hi there. Sorry, that's one I don't know a lot about. I've tried it before - I've gotten it to work with one file only, but not with assets such as images and sound.
@kiddkuru
@kiddkuru 2 жыл бұрын
@@TokyoEdTech in order to get it to an exe, i use auto-py-to-exe. i put this code into the beginning of my script aswell: ------- import os, sys def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path) ----------- then for images, add something like - wn.register_shape(resource_path("_folder_\_folder_\_image.gif_")) - just make sure to put "resource_path" in parenthesis around your image so the function knows to convert it. hope this helps
@kiddkuru
@kiddkuru 2 жыл бұрын
should work with sound, etc aswell
@wizardaidan8927
@wizardaidan8927 4 жыл бұрын
Traceback (most recent call last): File "C:/Users/dange/Desktop/HTML AND JAVASCRIPT/PYTHON/Space Invaders.py", line 20, in delay = raw_input("Press Enter to finish") NameError: name 'raw_input' is not defined And heres my code: #Turtle Graphics Game import turtle #set up screen wn = turtle.Screen() wn.bgcolor("lightgreen") #Create player (turtle) player = turtle.Turtle() player.color('blue') player.shape("triangle") delay = raw_input("Press Enter to finish")#Turtle Graphics Game import turtle #set up screen wn = turtle.Screen() wn.bgcolor("lightgreen") #Create player (turtle) player = turtle.Turtle() player.color('blue') player.shape("triangle") delay = raw_input("Press Enter to finish")
@alexcigun8529
@alexcigun8529 8 жыл бұрын
Used methods for sound do not work on Windows 10. How? I do not know (
@alexcigun8529
@alexcigun8529 8 жыл бұрын
Thank you. I shall see it
@alexcigun8529
@alexcigun8529 8 жыл бұрын
Ptogram stopes for same seconds
@alexcigun8529
@alexcigun8529 8 жыл бұрын
I can only to import traditional tkinter )
@alexcigun8529
@alexcigun8529 8 жыл бұрын
Until use winsound.Beep(frequency, duration).
@rashidibby
@rashidibby 3 ай бұрын
does this still work on turtle 2024?
@TokyoEdTech
@TokyoEdTech 3 ай бұрын
Mostly. Change delay = raw_input() to wn.mainloop() Also, left -> Left or Left -> left in the keyboard section. Other than that, you should be fine.
@ozyurowitz2815
@ozyurowitz2815 7 жыл бұрын
Traceback (most recent call last): File "C:/Users/Oziyu/Desktop/python/if.py", line 6, in wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' help me
@tuckerwhite5884
@tuckerwhite5884 5 жыл бұрын
Capital S in screen
@GazzapperGames
@GazzapperGames 6 жыл бұрын
Check out 'Simple Turtle' on Android
@manishaprajapat4455
@manishaprajapat4455 7 жыл бұрын
hi christian sir.m from india and i love the way you teach.can please make a game on sudoku using turtle....please do reply.it's very urgent
@amandabui1927
@amandabui1927 7 жыл бұрын
Manisha Prajapat, shouldn’t you be absolutely ashamed of yourself? Christian Thompson, creating sudoku within turtle is actually a common CSCI intro level course EXAM that students do right around this time of year.... it’s only urgent because this guy wants to cheat off of you.... and I only know this because I also have the exact same assignment as of right now.
@williamwhite3303
@williamwhite3303 6 жыл бұрын
Thanks Tobias
@latech2142
@latech2142 2 жыл бұрын
Thank You Sir!
@TokyoEdTech
@TokyoEdTech 2 жыл бұрын
You're welcome!
@shribhagwanmaurya9156
@shribhagwanmaurya9156 6 жыл бұрын
In which u r working it is anaconda or python idle
@kenobi3557
@kenobi3557 7 жыл бұрын
Can i use pycharm?
@kenobi3557
@kenobi3557 7 жыл бұрын
Thanks a lot. :D
@s72here
@s72here 4 жыл бұрын
Bro what is the version Python ?
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
This was written in 2.7, but should work in 3.x as well.
@cobra_yt7032
@cobra_yt7032 4 жыл бұрын
@@TokyoEdTech It does not work it says turtle has no attribute 'screen'
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
@@cobra_yt7032 screen -> Screen
@cobra_yt7032
@cobra_yt7032 4 жыл бұрын
@@TokyoEdTech Ya I fixed that, now it giving me this error: back.bgcolour ('Blue') AttributeError: '_Screen' object has no attribute 'bgcolour' For this code: import turtle back = turtle.Screen() back.bgcolour ('Blue')
@cobra_yt7032
@cobra_yt7032 4 жыл бұрын
NWM it is working now i did British spelling instead of American for 'colour' instead of 'color'. Thnx.
@arybis2466
@arybis2466 4 жыл бұрын
They say that : name 'speed' is not defined , any ideas?
@arybis2466
@arybis2466 4 жыл бұрын
@@TokyoEdTech Oh yeah, I forgot to make a variable... Btw, you are awesome!
@arybis2466
@arybis2466 4 жыл бұрын
@@TokyoEdTech What IDE do u use? IDLE does not respond and Spyder does not do anything...
@creem3897
@creem3897 4 жыл бұрын
what does player.penup do?
@creem3897
@creem3897 4 жыл бұрын
@@TokyoEdTech thx sir
@creem3897
@creem3897 4 жыл бұрын
@@TokyoEdTech it drew a line
@creem3897
@creem3897 4 жыл бұрын
thx sir.
@rokayamohamedahmed4284
@rokayamohamedahmed4284 4 жыл бұрын
On the player speed when I run it it doesn't move
@TokyoEdTech
@TokyoEdTech 4 жыл бұрын
I’m happy to help, but I need to see the actual code. Please share your code via pastebin.com link so I can download and test it. To learn how, please watch this video and then get back to me: kzbin.info/www/bejne/gmekqImrqpuCabs Keep on codin’!
@ussyplayer1313
@ussyplayer1313 6 жыл бұрын
can you make an updated tutorial
@ussyplayer1313
@ussyplayer1313 6 жыл бұрын
Christian Thompson a 3.6 or 3.7 version
@sacdiyocabdi5069
@sacdiyocabdi5069 Жыл бұрын
Plz give application name you can do that the code
@TokyoEdTech
@TokyoEdTech Жыл бұрын
In this video I am using BBEdit which is Mac only. However, these days, I use Geany which if free, open source, and cross platform. You can learn more about it here: kzbin.info/www/bejne/p6bInnyditNneZo
@gunasekaran-oe4rb
@gunasekaran-oe4rb 6 жыл бұрын
how to add scroll bar in turtle screen
@husyn7120
@husyn7120 4 жыл бұрын
for delay = raw_input it says " name raw_input is not defined"
@husyn7120
@husyn7120 4 жыл бұрын
it wrks perfectly on python ide but not on vscode
@docjey2em508
@docjey2em508 4 жыл бұрын
The turtle is not movinng forward on mine
@docjey2em508
@docjey2em508 4 жыл бұрын
Christian Thompson pasted already
@docjey2em508
@docjey2em508 4 жыл бұрын
Christian Thompson pastebin.com/LY8xRMbv
@docjey2em508
@docjey2em508 4 жыл бұрын
Christian Thompson no error message but it ain’t moving forward like in your vid
@docjey2em508
@docjey2em508 4 жыл бұрын
Christian Thompson it’s all good sir. It is now working. I just needed to dl the correct interpreter.
@docjey2em508
@docjey2em508 4 жыл бұрын
Christian Thompson it’s all good now
@BernardoWelsing
@BernardoWelsing 5 ай бұрын
what is raw_input
@TokyoEdTech
@TokyoEdTech 5 ай бұрын
@@BernardoWelsing That was used in Python 2 to get input in the terminal. For Python 3 use input.
@BernardoWelsing
@BernardoWelsing 5 ай бұрын
@@TokyoEdTech thanks bro
@dlbet4110
@dlbet4110 Ай бұрын
The big fail is that you haven't told me how to get to the place where you start to code. It's a pretty important first step for beginners.
@TokyoEdTech
@TokyoEdTech Ай бұрын
@@dlbet4110 Yes, the assumption is that you already know this, or that you know how to search. Try this: kzbin.info/www/bejne/j6aQZ4V6eLRleLssi=v2mgZTED013mi7XL
@keeganmclean7982
@keeganmclean7982 4 жыл бұрын
does Christian reply?
@TNT9182-j1e
@TNT9182-j1e 6 жыл бұрын
It says there is no module called turtle
@manishaprajapat4455
@manishaprajapat4455 7 жыл бұрын
sir please reply to my comment
@manishaprajapat4455
@manishaprajapat4455 7 жыл бұрын
Ok sir no problem at all.BTW thank u so much sir
Simple Python Turtle Graphics Game (Part 2)
6:54
TokyoEdtech
Рет қаралды 56 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,7 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Graphical Python Programming For Beginners with Turtle
26:41
NeuralNine
Рет қаралды 26 М.
Python/Pygame Checkers Tutorial (Part 1) - Drawing the Board
33:26
Tech With Tim
Рет қаралды 144 М.
ASMR Programming - Coding Pacman - No Talking
1:21:19
Servet Gulnaroglu
Рет қаралды 3 МЛН
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,7 МЛН
Why is graphics programming SO HARD to learn? My story
6:41
Low Level Game Dev
Рет қаралды 17 М.
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,4 МЛН
Make a Snake Game in Python | Turtle | Python Project
19:05
Coding With Evan
Рет қаралды 84 М.