If I typed: s2g.py Terraheads (no arrow parenthesis around Terraheads) I got no syntax errors but it said “NameError: name ‘s2g’ is not defined” I have all of the files that the ReadMe file instructed in the ScratchFoot Master File.Are you in the command line or the Python interactive interpreter? The error message sounds like the latter. exampletext.mp3 doesnt at all match with SHMC. Or wihout “python”: s2g.py Which gave me a syntax error under “”. Yo I am also a student but I looked on the forums for help So basically, you need to get a recording of your sound and then put it in the sounds folder of your greenfoot project. When using the Greenfoot class playSound method, you do not have an object reference to the GreenfootSound object to control it. Okay so what I typed was: python s2g.py which gave me a “Synta圎rror: invalid syntax” syntax error under ‘s2g.py’. ![]() $ cd path/to/files $ python sg2.py Terraheads2.sb2 TerraheadsReplace “path/to/files” with the actual location to the folder that contains Terraheads2.sb2īookOwl wrote:Can you copy and paste the whole error message? That would help a lot with figuring out what is wrong.First off I have no Idea how to program in python. Change 'filename.filetype' to your music file saved in the sounds folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |