認識Scratch-教學講解課件_第1頁
認識Scratch-教學講解課件_第2頁
認識Scratch-教學講解課件_第3頁
認識Scratch-教學講解課件_第4頁
認識Scratch-教學講解課件_第5頁
已閱讀5頁,還剩131頁未讀, 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

認識Scratch!DongJun

Feb20171ppt課件認識Scratch!DongJun

Feb20171p舞臺區2ppt課件舞臺區2ppt課件我來試一試1-1在舞臺上移動鼠標,觀察(x,y)坐標值的。如果鼠標超出了舞臺的邊緣,數值發生什么變化?3ppt課件我來試一試1-1在舞臺上移動鼠標,觀察(x,y)坐標值的。3我來試一試1-24ppt課件我來試一試1-24ppt課件舞臺背景區-試一試嘗試使用圖庫新建一個背景自己繪制一個背景打開一個文件作為背景利用攝像頭拍一張圖片作為背景5ppt課件舞臺背景區-試一試嘗試使用圖庫新建一個背景5ppt課件角色區-試一試嘗試使用圖庫新建一個角色自己繪制一個角色打開一個文件作為角色利用攝像頭拍一張圖片作為角色6ppt課件角色區-試一試嘗試使用圖庫新建一個角色6ppt課件探索積木區動作區外觀區偵測區聲音區事件區控制區畫筆區7ppt課件探索積木區動作區7ppt課件外觀顏色1-28ppt課件外觀顏色1-28ppt課件乒乓游戲第一步:準備背景第二步:加入乒乓和球板第三步:讓角色動起來乒乓球(角度方向,隨機值(向下(-45,45)向上(135,225)))球板(跟隨鼠標的x)9ppt課件乒乓游戲第一步:準備背景9ppt課件10ppt課件10ppt課件WhatisScratch?Scratchisafreeprogrammabletoolkitthatenableskidstocreatetheirowngames,animatedstories,andinteractiveartandsharetheircreationswithoneanotherovertheInternet.11ppt課件WhatisScratch?ScratchisafWhatisScratch?ScratchbuildsonthelongtraditionofLogoandLEGO/Logo,buttakesadvantageofnewcomputationalideasandcapabilitiestomakeiteasierforkidstogetstartedwithprogramming(loweringthefloor)andtoextendtherangeofwhatkidscancreateandlearn(raisingtheceiling).12ppt課件WhatisScratch?ScratchbuildsWhatisScratch?Theultimategoalistohelpkidsbecomefluentwithdigitalmedia,empoweringthemtoexpressthemselvescreativelyandmakeconnectionstopowerfulideas.13ppt課件WhatisScratch?TheultimategWhatisScratch?ScratchisbuiltontopoftheSqueakenvironmentdevelopedbyAlanKayandcolleagues.14ppt課件WhatisScratch?ScratchisbuiWhatisScratch?ScratchisbeingdevelopedbytheLifelongKindergartenresearchgroupattheMITMediaLab,incollaborationwithKIDSresearchgroupattheUCLAGraduateSchoolofEducation&InformationStudies.15ppt課件WhatisScratch?ScratchisbeiLet’sGetStarted!ToOpenScratch,double-clickontheScratch(cat)iconorclickonScratch.exe16ppt課件Let’sGetStarted!ToOpenScraGettingStartedWithScratchOnceyou’veopenedScratch,youshouldseethisdefaultscreen:17ppt課件GettingStartedWithScratchOnWatchaQuickIntroductiontoScratch!18ppt課件WatchaQuickIntroductiontoLet’sLookAtSomeScratchExamplesGotoOpen>ProjectsandchoosethecategoryAnimationLookthroughthemandseewhatyouwillbeabletodoinScratch!(Someofthesehavesound.Pleasebeconsiderateofyourneighborsandturnthesounddownonyourcomputers!Askyourteachertohelpyouifyoudon’tknowhow.)19ppt課件Let’sLookAtSomeScratchExaChooseYourSprite!Youwillnoticethatthedefaultspriteisanorangecat.(Aspriteisasmallgraphicthatcanbemovedindependentlyaroundthescreen,producinganimatedeffects.)YoucanchooseadifferentspritetoprogramfromalibraryinScratch,oryoucandrawyourown!Youwillcreateyourownspritelater.20ppt課件ChooseYourSprite!YouwillnoChooseYourSprite!TochooseaspritefromtheScratchlibrary,clickontheFolderwithaStaricon.Whenyouhoveryourmouseoverit,itwillsay“Choosenewspritefromfile”.21ppt課件ChooseYourSprite!TochooseaChooseYourSprite!Openthefoldersofthedifferentcategoriesofsprites.Chooseonethatyou’dliketoexperimentwithbydoubleclickingonit.Youcanhavemorethanonespriteinyouranimation!22ppt課件ChooseYourSprite!OpenthChooseYourSprite!Onceyouhaveaspritethatyou’dliketoprogram,youcandeletetheorangecatspritebyclickingthescissoriconandclickingonthecat!Makesurethatyouclickonthearrowiconbeforeyoudoanythingelse–otherwise,you’lldeletesomethingthatyoureallywanted!Youcanalsorightclickontheicontodeletethatsprite23ppt課件ChooseYourSprite!OnceyouhaResizeYourSprite!Youcanmakeyourspritelargerorsmallerbyusingthe“growsprite”or“shrinksprite”icons.Youclickononeoftheseicons,thenclickonyourspriteuntilitisthesizeyou’dlike.24ppt課件ResizeYourSprite!YoucanmakChooseYourBackground!Rightnow,youhaveaplain,whitebackground–boring!YoucanalsochangeyourbackgroundbychoosingonefromtheScratchlibraryorcreatingyourown!25ppt課件ChooseYourBackground!RightnChooseYourBackground!ClickontheStage:Now,selectthe“Backgrounds”tab!26ppt課件ChooseYourBackground!ClickoChangeYourBackground!Youcanexperimentwithcreatingorimportingyourownbackgroundlater,but,forrightnow–chooseonefromthelibrarybyselectingImport.27ppt課件ChangeYourBackground!YoucanChangeTheBackground!

Fromthisscreen,youcanchooseoneofthecategoryfolders,andselectabackgroundthatyoulikebydoubleclickingonit!28ppt課件ChangeTheBackground!FromNow,We’reReadytoProgram!Now,youshouldhaveaspriteandabackgroundthatyou’dliketoworkwith!29ppt課件Now,We’reReadytoProgram!NoProgrammingInScratch!Thefirstthingyouneedtodoistoclickonthespriteyouwanttoprogram,andselectthe“Scripts”tab.Sinceyourspriteistheonlythingthatcanbeanimated,makesureyouhaveitselected.TheScriptsareaiswhereyou“build”yourprogrambyusingtheprogrammingblocks.30ppt課件ProgrammingInScratch!ThefirProgrammingInScratch!Intheupper,left-handcornerofyourScratchwindow,youwillsee8buttons.Eachofthesebuttonshaveprogrammingblocksinthoseparticularareas.WewillfirstexperimentwiththeMotionblocks.31ppt課件ProgrammingInScratch!IntheMotion!Whenyouclickonthemotionbutton,youwillseetheprogrammingblocksthatcanbeusedwithyoursprite.Let’sallprogramourspriteswiththesamecodefirst,andthenyou’llbeallowedtoexperimentonyourown!32ppt課件Motion!WhenyouclickonthemMotion!Dragoutthe“move10steps”block.Changethe“10”to“50”byclickingintheblockandtypingin50.Toseeyourspritemove50pixelstotheright,doubleclickontheblockintheScriptarea.Cool,isn’tit?!33ppt課件Motion!Dragoutthe“move10sMotionYoucanalsosetthemotionblocktomoveanegativenumberofpixelsbytypinganegativenumberintheblock.Thiswillmoveyourspritethatnumberofpixelsintheoppositedirection.34ppt課件MotionYoucanalsosetthemotWhatIsAPixel?We’vebeentalkingaboutpixels–whatisapixel?Apixelisoneofthesmallunitsthatmakeupanimageonacomputerortelevisionscreen.Itisderivedfromthewordspictureandelementtomakepixel!

35ppt課件WhatIsAPixel?We’vebeentalTheScratchStageTheScratchstageis480pixelswideand360pixelshigh.-240240180-18036ppt課件TheScratchStageTheScratchsMoreMotion!Now,addthe“turn15degrees”blocktotheotherblockofcode.Whenyouseethewhitebarbetweenthe2blocksofcode,youcanreleaseyourmouse.Thatwhitebarmeansthatthe2blockswill“snap”ontotheotherblock.37ppt課件MoreMotion!Now,addthe“turnMoreMotion!Again,youcanchangethenumberofdegreesbydoubleclickinginthatareaandtypinginthenumberofdegreesyou’dlikeyourspritetorotate.Doubleclickontheblockstoseeyourspritemoveandrotate!38ppt課件MoreMotion!Again,youcanchaExperimentWithMotion!We’veonlyused2oftheblocksintheMotioncategory.Forthenextfewminutes,IwantyoutoexperimentwithalloftheotherblocksintheMotioncategory.Ifyou’dliketoseewhatablockdoes,rightclickontheblockandthenclickonhelp.YoucandeletecodeeasilybyjustdraggingitfromtheScriptarea!Havefun!39ppt課件ExperimentWithMotion!We’veoControl!ThenextcategoryofprogrammingbuttonswewillexperimentwithistheControlcategory.Thisisaveryimportantcategorybecauseitcontrolshowmanytimesaneventhappens,howlonganeventhappens,orwhenaneventhappens.40ppt課件Control!ThenextcategoryofpControl!ThefirstblockI’dlikeustouseisthe“whenflagclicked”block:Dragthisblockout,andsnapitontopoftheblocksyoualreadyhaveinyourscript.41ppt課件Control!ThefirstblockI’dliControl!Now,insteadofhavingtodoubleclickonyourblockofcode,youcanjustclickontheflagicontoplayyouranimation!Clickheretostart42ppt課件Control!Now,insteadofhavingPresentationModeWhenyouclickonthepresentationmodebutton,youranimationwillfillthewholescreen!Toexitpresentationmode,clickthearrowinthetopleftofthescreen,orjustpresstheEsckey.43ppt課件PresentationModeWhenyouclicBacktoControl!OtherpowerfulblocksintheControlcategoryaretheblocksthathandleconditionalstatements.Conditionalstatementsarecommonlycalled“ifstatements”or“if-elsestatements”.44ppt課件BacktoControl!OtherpowerfulConditionalStatementsThiscodemeansthatiftheuserpressestheSpacekeyonthekeyboard,thespritewillmove10steps.45ppt課件ConditionalStatementsThiscodSensing!Theconditionalstatementsmustbeusedalongwiththesensingblocks.(Noticetheshapeofsomeofthesensingblocks.Theyaretheonesthatwillfitinsidethe“condition”sincetheyhave6sides)46ppt課件Sensing!TheconditionalstatemBacktoControl!Forthenextfewminutes,experimentwiththeblocksinMotion,Control,andSensing.Rightclickonablockandselecthelptogetinformationaboutablock.Whenyougetsomethingcool,I’dliketoseeit!47ppt課件BacktoControl!ForthenextfSound!Now,let’saddsomesoundtoouranimation!Therearemanydifferentwaystogetsoundinyouranimation.Thefirstwaywe’regoingtoexperimentwithisbyimportingasoundfromtheScratchsoundlibrary.48ppt課件Sound!Now,let’saddsomesounImportingSoundFromTheScratchSoundLibraryClickonthespriteyouwanttohavesound.ClickontheSoundstabandselectImport.49ppt課件ImportingSoundFromTheScratScratchSoundLibraryYouwillseedifferentcategoriesofsoundsthatyoucanuseinyouranimationthatareavailableforyouintheScratchlibrary.50ppt課件ScratchSoundLibraryYouwillInsertingSoundOnceyoufindasoundthatyoulike,selectitandclickonOK.Youwillseethesoundyoujustselectedshowupunder“NewSound”.51ppt課件InsertingSoundOnceyoufindaPlayYourSoundIfyouclickonthe“Play”button,youcanpreviewyoursound.52ppt課件PlayYourSoundIfyouclickonAddingTheSoundToYourAnimationNow,you’rereadytoaddthesoundtoyouranimation!ClickontheScripttab.Selectthespriteyouwanttohavesound.NowselecttheSoundbutton.53ppt課件AddingTheSoundToYourAnimaAddingSoundNow,selectoneoftheblocksthatsays,“playsound…”Selectyoursoundfromthedrop-downmenubyclickingonthetrianglenextto“pop”.54ppt課件AddingSoundNow,selectoneofRecordingaSoundClickontherecordbuttontorecordasoundClickontheredbuttontostartrecordingClickonthesquaretostopYoucanrenamethesoundbytypingoverthename55ppt課件RecordingaSoundClickontheIncorporateSoundIntoYourAnimation!WhenIclicktheflag,mybeewillmoveandbuzz.56ppt課件IncorporateSoundIntoYourAnTimeToPlay!Forthenextfewminutes,experimentwithMotion,Control,Sensing,andSound!Whenyougetsomethingcool,letmeseeit!57ppt課件TimeToPlay!ForthenextfewUsingThePen!WhenusingthePentools,yourspriteactuallybecomesyourwritinginstrument!YoucanchangethePen’scolor,itsshade,anditssize.58ppt課件UsingThePen!WhenusingthePUsingthePen!YourfirstPenchallengeistowriteyourinitialsusingthePentools.Itmaysoundeasy,but,youhavetoremembertoliftyourpenwhennecessaryandalsotoputitbackdown!59ppt課件UsingthePen!YourfirstPencPenChallenge#2GreatjobwithPenChallenge#1!YoursecondPenChallengeistousethetoolstocreateaninterestingdesign.RememberthatyoucanchangePencolorandshade!60ppt課件PenChallenge#2GreatjobwithNumbers!TherearemanyanimationeffectsyoucancreateusingNumbersinScratch.Oneeffectisrandommovementofasprite!61ppt課件Numbers!TherearemanyanimatiRandomMovementRememberthattheScratchanimationareais480pixelswideand360pixelshigh.Thatmeansthattherangeonthehorizontalaxisisfrom-240to240.Therangeontheverticalaxisis

-180to180.62ppt課件RandomMovementRememberthattRandomMovementThisistheblockofcodeIwoulduseifIwantedmyspritetorandomlyglidetheentirehorizontalandverticaldistanceofmyScratchanimationarea:63ppt課件RandomMovementThisisthebloNumbers!Forthenextfewminutes,experimentwiththetoolsinMotion,Control,Sensing,Sound,andNumbers.Clickrightonablockandselecthelptoseewhatitdoes.Whenyougetsomethingcool,letmeseeit!64ppt課件Numbers!ForthenextfewminutVariables!Variablesareusedmainlyinthedevelopmentofgames.OpensomeoftheexamplesinProjects>Gamestoseehowvariablesareusedtokeepscoreinagame.65ppt課件Variables!VariablesareusedmTimeToHaveFun!Nowit’stimeforyoutocreateyourownoriginalanimationsorgames!Eachtablehasasetof12laminatedcardswithdifferentprojectsthatyoucantry,togiveyouideasforyourownanimation.66ppt課件TimeToHaveFun!Nowit’stimeLearnHowTo:Whileyou’recreatingyourownScratchanimation,Iwantyoutodiscoverhowto:Createyourownsprite;Createyourownbackground;67ppt課件LearnHowTo:Whileyou’recreaLastSlide!Rememberto:Beappropriate;Becreative;Havefun!YouwillalsobegivenaScratchHelpGuide,completewithscreenshotstohelpyougetstarted.68ppt課件LastSlide!Rememberto:68ppt課件認識Scratch!DongJun

Feb201769ppt課件認識Scratch!DongJun

Feb20171p舞臺區70ppt課件舞臺區2ppt課件我來試一試1-1在舞臺上移動鼠標,觀察(x,y)坐標值的。如果鼠標超出了舞臺的邊緣,數值發生什么變化?71ppt課件我來試一試1-1在舞臺上移動鼠標,觀察(x,y)坐標值的。3我來試一試1-272ppt課件我來試一試1-24ppt課件舞臺背景區-試一試嘗試使用圖庫新建一個背景自己繪制一個背景打開一個文件作為背景利用攝像頭拍一張圖片作為背景73ppt課件舞臺背景區-試一試嘗試使用圖庫新建一個背景5ppt課件角色區-試一試嘗試使用圖庫新建一個角色自己繪制一個角色打開一個文件作為角色利用攝像頭拍一張圖片作為角色74ppt課件角色區-試一試嘗試使用圖庫新建一個角色6ppt課件探索積木區動作區外觀區偵測區聲音區事件區控制區畫筆區75ppt課件探索積木區動作區7ppt課件外觀顏色1-276ppt課件外觀顏色1-28ppt課件乒乓游戲第一步:準備背景第二步:加入乒乓和球板第三步:讓角色動起來乒乓球(角度方向,隨機值(向下(-45,45)向上(135,225)))球板(跟隨鼠標的x)77ppt課件乒乓游戲第一步:準備背景9ppt課件78ppt課件10ppt課件WhatisScratch?Scratchisafreeprogrammabletoolkitthatenableskidstocreatetheirowngames,animatedstories,andinteractiveartandsharetheircreationswithoneanotherovertheInternet.79ppt課件WhatisScratch?ScratchisafWhatisScratch?ScratchbuildsonthelongtraditionofLogoandLEGO/Logo,buttakesadvantageofnewcomputationalideasandcapabilitiestomakeiteasierforkidstogetstartedwithprogramming(loweringthefloor)andtoextendtherangeofwhatkidscancreateandlearn(raisingtheceiling).80ppt課件WhatisScratch?ScratchbuildsWhatisScratch?Theultimategoalistohelpkidsbecomefluentwithdigitalmedia,empoweringthemtoexpressthemselvescreativelyandmakeconnectionstopowerfulideas.81ppt課件WhatisScratch?TheultimategWhatisScratch?ScratchisbuiltontopoftheSqueakenvironmentdevelopedbyAlanKayandcolleagues.82ppt課件WhatisScratch?ScratchisbuiWhatisScratch?ScratchisbeingdevelopedbytheLifelongKindergartenresearchgroupattheMITMediaLab,incollaborationwithKIDSresearchgroupattheUCLAGraduateSchoolofEducation&InformationStudies.83ppt課件WhatisScratch?ScratchisbeiLet’sGetStarted!ToOpenScratch,double-clickontheScratch(cat)iconorclickonScratch.exe84ppt課件Let’sGetStarted!ToOpenScraGettingStartedWithScratchOnceyou’veopenedScratch,youshouldseethisdefaultscreen:85ppt課件GettingStartedWithScratchOnWatchaQuickIntroductiontoScratch!86ppt課件WatchaQuickIntroductiontoLet’sLookAtSomeScratchExamplesGotoOpen>ProjectsandchoosethecategoryAnimationLookthroughthemandseewhatyouwillbeabletodoinScratch!(Someofthesehavesound.Pleasebeconsiderateofyourneighborsandturnthesounddownonyourcomputers!Askyourteachertohelpyouifyoudon’tknowhow.)87ppt課件Let’sLookAtSomeScratchExaChooseYourSprite!Youwillnoticethatthedefaultspriteisanorangecat.(Aspriteisasmallgraphicthatcanbemovedindependentlyaroundthescreen,producinganimatedeffects.)YoucanchooseadifferentspritetoprogramfromalibraryinScratch,oryoucandrawyourown!Youwillcreateyourownspritelater.88ppt課件ChooseYourSprite!YouwillnoChooseYourSprite!TochooseaspritefromtheScratchlibrary,clickontheFolderwithaStaricon.Whenyouhoveryourmouseoverit,itwillsay“Choosenewspritefromfile”.89ppt課件ChooseYourSprite!TochooseaChooseYourSprite!Openthefoldersofthedifferentcategoriesofsprites.Chooseonethatyou’dliketoexperimentwithbydoubleclickingonit.Youcanhavemorethanonespriteinyouranimation!90ppt課件ChooseYourSprite!OpenthChooseYourSprite!Onceyouhaveaspritethatyou’dliketoprogram,youcandeletetheorangecatspritebyclickingthescissoriconandclickingonthecat!Makesurethatyouclickonthearrowiconbeforeyoudoanythingelse–otherwise,you’lldeletesomethingthatyoureallywanted!Youcanalsorightclickontheicontodeletethatsprite91ppt課件ChooseYourSprite!OnceyouhaResizeYourSprite!Youcanmakeyourspritelargerorsmallerbyusingthe“growsprite”or“shrinksprite”icons.Youclickononeoftheseicons,thenclickonyourspriteuntilitisthesizeyou’dlike.92ppt課件ResizeYourSprite!YoucanmakChooseYourBackground!Rightnow,youhaveaplain,whitebackground–boring!YoucanalsochangeyourbackgroundbychoosingonefromtheScratchlibraryorcreatingyourown!93ppt課件ChooseYourBackground!RightnChooseYourBackground!ClickontheStage:Now,selectthe“Backgrounds”tab!94ppt課件ChooseYourBackground!ClickoChangeYourBackground!Youcanexperimentwithcreatingorimportingyourownbackgroundlater,but,forrightnow–chooseonefromthelibrarybyselectingImport.95ppt課件ChangeYourBackground!YoucanChangeTheBackground!

Fromthisscreen,youcanchooseoneofthecategoryfolders,andselectabackgroundthatyoulikebydoubleclickingonit!96ppt課件ChangeTheBackground!FromNow,We’reReadytoProgram!Now,youshouldhaveaspriteandabackgroundthatyou’dliketoworkwith!97ppt課件Now,We’reReadytoProgram!NoProgrammingInScratch!Thefirstthingyouneedtodoistoclickonthespriteyouwanttoprogram,andselectthe“Scripts”tab.Sinceyourspriteistheonlythingthatcanbeanimated,makesureyouhaveitselected.TheScriptsareaiswhereyou“build”yourprogrambyusingtheprogrammingblocks.98ppt課件ProgrammingInScratch!ThefirProgrammingInScratch!Intheupper,left-handcornerofyourScratchwindow,youwillsee8buttons.Eachofthesebuttonshaveprogrammingblocksinthoseparticularareas.WewillfirstexperimentwiththeMotionblocks.99ppt課件ProgrammingInScratch!IntheMotion!Whenyouclickonthemotionbutton,youwillseetheprogrammingblocksthatcanbeusedwithyoursprite.Let’sallprogramourspriteswiththesamecodefirst,andthenyou’llbeallowedtoexperimentonyourown!100ppt課件Motion!WhenyouclickonthemMotion!Dragoutthe“move10steps”block.Changethe“10”to“50”byclickingintheblockandtypingin50.Toseeyourspritemove50pixelstotheright,doubleclickontheblockintheScriptarea.Cool,isn’tit?!101ppt課件Motion!Dragoutthe“move10sMotionYoucanalsosetthemotionblocktomoveanegativenumberofpixelsbytypinganegativenumberintheblock.Thiswillmoveyourspritethatnumberofpixelsintheoppositedirection.102ppt課件MotionYoucanalsosetthemotWhatIsAPixel?We’vebeentalkingaboutpixels–whatisapixel?Apixelisoneofthesmallunitsthatmakeupanimageonacomputerortelevisionscreen.Itisderivedfromthewordspictureandelementtomakepixel!

103ppt課件WhatIsAPixel?We’vebeentalTheScratchStageTheScratchstageis480pixelswideand360pixelshigh.-240240180-180104ppt課件TheScratchStageTheScratchsMoreMotion!Now,addthe“turn15degrees”blocktotheotherblockofcode.Whenyouseethewhitebarbetweenthe2blocksofcode,youcanreleaseyourmouse.Thatwhitebarmeansthatthe2blockswill“snap”ontotheotherblock.105ppt課件MoreMotion!Now,addthe“turnMoreMotion!Again,youcanchangethenumberofdegreesbydoubleclickinginthatareaandtypinginthenumberofdegreesyou’dlikeyourspritetorotate.Doubleclickontheblockstoseeyourspritemoveandrotate!106ppt課件MoreMotion!Again,youcanchaExperimentWithMotion!We’veonlyused2oftheblocksintheMotioncategory.Forthenextfewminutes,IwantyoutoexperimentwithalloftheotherblocksintheMotioncategory.Ifyou’dliketoseewhatablockdoes,rightclickontheblockandthenclickonhelp.YoucandeletecodeeasilybyjustdraggingitfromtheScriptarea!Havefun!107ppt課件ExperimentWithMotion!We’veoControl!ThenextcategoryofprogrammingbuttonswewillexperimentwithistheControlcategory.Thisisaveryimportantcategorybecauseitcontrolshowmanytimesaneventhappens,howlonganeventhappens,orwhenaneventhappens.108ppt課件Control!ThenextcategoryofpControl!ThefirstblockI’dlikeustouseisthe“whenflagclicked”block:Dragthisblockout,andsnapitontopoftheblocksyoualreadyhaveinyourscript.109ppt課件Control!ThefirstblockI’dliControl!Now,insteadofhavingtodoubleclickonyourblockofcode,youcanjustclickontheflagicontoplayyouranimation!Clickheretostart110ppt課件Control!Now,insteadofhavingPresentationModeWhenyouclickonthepresentationmodebutton,youranimationwillfillthewholescreen!Toexitpresentationmode,clickthearrowinthetopleftofthescreen,orjustpresstheEsckey.111ppt課件PresentationModeWhenyouclicBacktoControl!OtherpowerfulblocksintheControlcategoryaretheblocksthathandleconditionalstatements.Conditionalstatementsarecommonlycalled“ifstatements”or“if-elsestatements”.112ppt課件BacktoControl!OtherpowerfulConditionalStatementsThiscodemeansthatiftheuserpressestheSpacekeyonthekeyboard,thespritewillmove10steps.113ppt課件ConditionalStatementsThiscodSensing!Theconditionalstatementsmustbeusedalongwiththesensingblocks.(Noticetheshapeofsomeofthesensingblocks.Theyaretheonesthatwillfitinsidethe“condition”sincetheyhave6sides)114ppt課件Sensing!TheconditionalstatemBacktoControl!Forthenextfewminutes,experimentwiththeblocksinMotion,Control,andSensing.Rightclickonablockandselecthelptogetinformationaboutablock.Whenyougetsomethingcool,I’dliketoseeit!115ppt課件BacktoControl!ForthenextfSound!Now,let’saddsomesoundtoouranimation!Therearemanydifferentwaystogetsoundinyouranimation.Thefirstwaywe’regoingtoexperimentwithisbyimportingasoundfromtheScratchsoundlibrary.116ppt課件Sound!Now,let’saddsomesounImportingSoundFromTheScratchSoundLibraryClickonthespriteyouwanttohavesound.ClickontheSoundstabandselectImport.117ppt課件ImportingSoundFromTheScratScratchSoundLibraryYouwillseedifferentcategoriesofsoundsthatyoucanuseinyouranimationthatareavailableforyouintheScratchlibrary.118ppt課件ScratchSoundLibraryYouwillInsertingSoundOnceyoufindasoundthatyoulike,selectitandclickonOK.Youwillseethesoundyoujustselectedshowupunder“NewSound”.119ppt課件InsertingSoundOnceyoufindaPlayYourSoundIfyouclickonthe“Play”button,youcanpreviewyoursound.120ppt課件PlayYourSoundIfyouclickonAddingTheSoundToYourAnimationNow,you’rereadytoaddthesoundtoyouranimation!ClickontheScripttab.Selectthespriteyouwanttohavesound.NowselecttheSoundbutton.121ppt課件AddingTheSoundToYourAnimaAddingSoundNow,selectoneoftheblocksthatsays,“playsound…”Selectyoursoundfromthedrop-downmenubyclickingonthetrianglenextto“pop”.122ppt課件AddingSoundNow,selectoneofRecordingaSoundClickontherecordbuttontorecordasoundClickontheredbuttontostartrecordingClickonthesquaretostopYoucanrenamethesoundbytypingoverthename123ppt課件

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論