<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://peda.net/:static/535/atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>2 Hahmojen animointi yötaivaalle</title>
<id>https://peda.net/id/64c72f3c2</id>
<updated>2015-07-07T13:03:19+03:00</updated>
<link href="https://peda.net/id/64c72f3c2:atom" rel="self" />
<link href="https://peda.net/p/henril/ohjelmointi/scratch/2hay#top" rel="alternate" />
<logo>https://peda.net/:static/535/peda.net.logo.bg.svg</logo>
<rights type="html">&lt;div class=&quot;license&quot;&gt;Tämän sivun lisenssi &lt;a rel=&quot;license&quot; href=&quot;https://peda.net/info&quot;&gt;Peda.net-yleislisenssi&lt;/a&gt;&lt;/div&gt;&#10;</rights>

<entry>
<title>Hahmojen animointi yötaivaalle</title>
<id>https://peda.net/id/71c148ee2</id>
<updated>2016-09-16T12:00:46+03:00</updated>
<link href="https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay#top" />
<content type="html">&lt;b&gt;Tavoite: &lt;/b&gt;Luo animaatio, jossa luomasi hahmot (ainakin 3 kpl) liikkuvat yötaivaalla.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Ohje: &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;/b&gt;&lt;b&gt;1: Lataa&lt;/b&gt; kuvassa oleva tausta &lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/avaruustausta-png#top&quot; class=&quot;service&quot;&gt;Avaruustausta.png&lt;/a&gt; .&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png:file/photo/b677414e2093a98798b916d0ef24858c0523d0d6/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;2: &lt;/b&gt;Scratchin kirjastosta löytyy monenlaisia valmiita hahmoja. Hahmoja pystyy muokkaamaan itselle sopivaksi. Tässä esimerkissä olen tehnyt avaruusalukselle liekit perään. Ensin valitaan kirjastosta haluttu hahmo. Aluksen saa käännettyä vaakatasoon maalaamalla ja vetämällä ylhäällä olevasta &amp;quot;ympyrästä&amp;quot; haluttuun suuntaan.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png2#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png2:file/photo/434b8b6a0e2f9dd2a1629416bc9781a924f39727/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;b&gt;3:&lt;/b&gt; Nyt kannattaa alusta pienentää, niin että se ei peitä koko taustakuvaa.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png3#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png3:file/photo/a75484aab3513ff887bac8f6e07c946d2c1a286e/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;b&gt;4:&lt;/b&gt; Kun alus on sopivan kokoinen, tee siitä pari kopiota.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png0#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png0:file/photo/006096b24967de90470bed53de902797bb88b341/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;b&gt;5: &lt;/b&gt;Tee jokaiselle alukselle hieman erilaiset liekit.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png6#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png6:file/photo/0c9a01469c4721d8f359ac011208f3b2d2eae8f5/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;6: &lt;/b&gt;Nyt saat aluksen liikkeelle esimerkiksi tällaisilla komennoilla.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-pnga#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-pnga:file/photo/7c40cfcedd33972ea95cced9e7f8a916e12ea071/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;7: &lt;/b&gt;Tee lisää hahmoja ja laita ne liikkumaan ruudulla. &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;8: &lt;/b&gt;Voit laittaa esimerkiksi hahmot sanomaan jotain, jos ne törmäävät toisiinsa. Tämä tapahtuu &amp;quot;tuntoaistin&amp;quot; avulla. Minun esimerkissä lentävä jetpak-mies kysyy kysymyksen: &amp;quot;yritätkö kärventää mut?&amp;quot;, kun se törmää avaruusaluksen liekkeihin. &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png5#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png5:file/photo/23769654e969262712beeee9a3af86bbaa13548e/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;span class=&quot;center small&quot;&gt;&lt;a href=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png68#top&quot; title=&quot;Capture.PNG&quot;&gt;&lt;img src=&quot;https://peda.net/p/henril/ohjelmointi/scratch/2hay/hay/capture-png68:file/photo/e6a130ccd8d61e22a109fc5e82f9e52876681dfc/Capture.PNG&quot; alt=&quot;&quot; title=&quot;Capture.PNG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;b&gt;9: &lt;/b&gt;Tallenna työsi omaan kansioosi!&lt;br/&gt;&#10;&lt;br/&gt;&#10;Kokeile esimerkkiä &lt;a href=&quot;https://scratch.mit.edu/projects/69662850/&quot; rel=&quot;nofollow ugc noopener&quot;&gt;täältä.&lt;/a&gt;</content>
<published>2015-07-07T13:03:41+03:00</published>
</entry>


</feed>