Transformaons - UCL · 2018. 7. 26. · Open project 6-Mimic Meeeee - if online Save as a copy and...

Preview:

Citation preview

COORDINATESANDGEOMETRYMODULE6:INVESTIGATION3

Transforma<ons

1

ACTIVITY6.3.1

MimicMeeeee

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

2

Openproject6-MimicMeeeee -ifonlineSaveasacopyandaddyourname -ifofflineSaveasandaddyourname

Exploretheproject,itsspritesFleeeeeandMeeeee,theircostumesandtheirsetupscripts.

Runtheprojectbyclickingthe.Envisage,exploreandexplaintwoforeverscriptsofFleeeee.

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

3

ForMeeeeebuildawhengreenflagclickedscript,whichwillmakethespriteforeverlooktowardsFleeeee.TryitthenbydraggingFleeeeearoundthestage…Exploreandexplain.

4

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

ForMeeeeebuildawhengreenflagclickedscript,whichwillmakethespriteforeverlooktowardsFleeeee.TryitthenbydraggingFleeeeearoundthestage…Exploreandexplain.

WhichofthesetwosoluFonsiscorrect?Envisage,exploreandexplainthedifference.

5

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

ModifypreviousscriptsothatMeeeeewillalwayssaythecurrentxposi<onofFleeeee.UseapowerfulSensingblocks–somethingofsomebody.

Whichofthetwosayblockshaveyouused?WhichoneismoreusefulinthissituaFon?Envisage,exploreandexplain.

6

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

ThendragFleeeeearoundthestageandobserveMeeeee.

BuildamimickingscriptforMeeeee,whichwillforeverswitchitscostumetothecurrentcostume#ofFleeeee.Keepthepreviousscriptwithsay…,thescriptforswitchingcostumeswillbethefourthwhengreenflagclickedscriptMeeeee.

InthescriptofMeeeeewiththesayblock,replacesaybysetxto…sothatMeeeeewillnowmoveandmimictheactualxposi7onofFleeeee.

7

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

DragFleeeeearoundthestageandobserveMeeeee.

Modifythesamescriptbyreplacingsetxto…andxposi7onofFleeeeebysetyto…andyposi7onofFleeeee.Envisageandexplore.

ModifytheiniFalposiFonofFleeeeetobex:0y:0.ModifythesetupscriptofMeeeeesothat:

•  itsiniFalposiFonisx:0y:0,withpendown,•  insteadofsetxto…orsetyto…usegotox:…y:…forxandyposiFonsofFleeeee.

•  Removethepointtowardsblock.

8

MODULE6:INVESTIGATION3Ac<vity6.3.1–MimicMeeeee

ThendragFleeeeearoundthestageandobserveMeeeee.

DragFleeeeeandobserve.

ACTIVITY6.3.2

Shadows,Transla<onsandReflec<ons

MODULE6:INVESTIGATION3Ac<vity6.3.2–Transla<ons

9

ConFnueinyour6-MimicMeeeeeproject.

ClickthesothatMeeeeewillstartmimickingFleeeee.ForFleeeeebuildanisolatedglideblockwithrandomx:andy:posiFons.Turntheglideblockintothewhenthisspriteclickedscript,withrepeat10aroundglide.

10

MODULE6:INVESTIGATION3Ac<vity6.3.2–Transla<ons

ReplacepenupofFleeeeebypendownandclickthespriteagain.Didithelp?Envisage,exploreandexplainthedifference.ToseelinesforbothFleeeeeandMeeeee,modifythemimickingscriptofMeeeeetomove10pixelstotheright.

11

MODULE6:INVESTIGATION3Ac<vity6.3.2–Transla<ons

u Whatcolourarethelines?Whodrawsthem?

u WhenFleeeehasitspendownwhyareallthelinesred?

InthemimickingscriptofMeeeee,useanoperatortoaddasmallvaluetotheyposi7onofFleeeee.

ExploretheimagescreatedusingsmallvaluesoftranslaFon,differentpensizesandpencolours.

RestrictFleeeee’sglidingwithintheupperleVquadrant.MakeMeeeeemimicthesameglidedoodletranslated:

12

•  right200 • down150 •  right50down50

MODULE6:INVESTIGATION3Ac<vity6.3.2–Transla<ons

Insteadofusing inthemimickingscriptofMeeeee,usemulFplyby-1onthexposi7onofFleeeeeoryposi7onofFleeeeeorboth!

[Extension]MulFplyxoryposiFons(orboth)inthemimickingscriptofMeeeeeby0.5or-0.5.

Envisage,exploreandexplain.

13

MODULE6:INVESTIGATION3Ac<vity6.3.2–Transla<ons

ACTIVITY6.3.3

ThroughtheLookingGlass

MODULE6:INVESTIGATION3Ac<vity6.3.3–ThroughtheLookingGlass

14

Openproject6-LookingGlass -ifonlineSaveasacopyandaddyourname -ifofflineSaveasandaddyourname

ClicktheandexplorehowMeeeeeimitatesFleeeee.Clickthemove…andturn…scriptofFleeeeeandexplain.Makeregularpolygons:equilateraltriangle,square,hexagonetc.Extendthemove…andturn…scriptsothatitdrawsarectangle.Runitandexplore.Discusstheproblem.

Replaceeach blockby whichisaslowerversionofmovedefinedforyou.

MODULE6:INVESTIGATION3Ac<vity6.3.3–ThroughtheLookingGlass

15

Makevariablesidelengthanduseitinthestroll…stepsblocktodefineyourownsquareblockforFleeeee.Useyourownnewsquareblockinmorecomplexscriptstodrawpicturessimilartothese.NotethatMeeeeeisalwaysmimickingFleeeeeinitsownway.

MODULE6:INVESTIGATION3Ac<vity6.3.3–ThroughtheLookingGlass

16

[Extension]ModifythemimickingscriptofMeeeeesothatitreflectsthexposi7onofFleeeeemulFpliedbyposiFve0.5.Runyourpreviousscripts(orsimilar)withthesquareblockagain.

MODULE6:INVESTIGATION3[Extension]Ac<vity6.3.3–ThroughtheLookingGlass

17

[Extension]ModifythemimickingscriptofMeeeeesothatitreflectsonlytheyposi7onofFleeeeemulFpliedby-1.Runyourpreviousscripts(orsimilar)withthesquareblockagain.

MODULE6:INVESTIGATION3[Extension]Ac<vity6.3.3–ThroughtheLookingGlass

18

[Extension]Usethestroll…stepsblockwithvariablesidelength.DefinethetriangleblockforFleeeee.Usesquareandtriangletodefineyourownhouseandarowofhouses.LetMeeeeedrawanightreflecFoninthepond.

Switchthebackdroptointhedayorinthenight,exploreandcreateyourownscenes.

MODULE6:INVESTIGATION3[Extension]Ac<vity6.3.3–ThroughtheLookingGlass

19

MyInves<ga<on3checklist:IexploredforeverscriptstomakeFleeeeeblinkornodatrandomly.Iexploredandusedthesomethingofsomebodyblock.IbuiltscriptsforMeeeeetomimicFleeeeeindifferentwayse.g.itsposiFon,heading,andcostume.IbuiltaglidedoodleforFleeeeeandexploredhowtotranslateitindifferentwaysusingMeeeee.Ireplacedthemoveblockwiththestroll…stepsblocktoenableMeeeeetomimicallofFleeeee’smovements.[Extension]IusedstrolltodrawcomplexdrawingswiththereflecFons.[Extension]IcreatedacomplexsceneforFleeeee,mirroredinwaterbyMeeeee.

MODULE6INVESTIGATION3:CheckList

20

Isasensingblockthatreportsdifferentvaluesofthespecifiedsprite

Similartogotox:…y:…block,itmakesthespritesmoothlyglidetospecifiedxandyposiFonsinspecifiedFme

Ourownblocktoreplacemove…stepsincertainsituaFons.Itmakesaspritemoveandwaitabit

MODULE6INVESTIGATION3:KeyVocabulary

21

Recommended