<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://kata.coderdojo.it/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
		<id>https://kata.coderdojo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Movimento_con_i_tasti</id>
		<title>Movimento con i tasti - Cronologia</title>
		<link rel="self" type="application/atom+xml" href="https://kata.coderdojo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Movimento_con_i_tasti"/>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;action=history"/>
		<updated>2026-04-18T12:34:19Z</updated>
		<subtitle>Cronologia della pagina su questo sito</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=134&amp;oldid=prev</id>
		<title>Leoncino: Movimento con il mouse Scratch</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=134&amp;oldid=prev"/>
				<updated>2014-09-21T17:52:49Z</updated>
		
		<summary type="html">&lt;p&gt;Movimento con il mouse Scratch&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 17:52, 21 set 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;amp;nbsp;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;amp;nbsp;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Category:Scratch&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;M&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=132&amp;oldid=prev</id>
		<title>Leoncino il 17:50, 21 set 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=132&amp;oldid=prev"/>
				<updated>2014-09-21T17:50:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 17:50, 21 set 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimento con i tasti =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimento con i tasti &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Scratch &lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Movimento &amp;quot;classico&amp;quot; ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Movimento &amp;quot;classico&amp;quot; ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento '''“Quando si preme il tasto.....”''' come si vede nella seguente immagine:&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando '''“punta in&amp;amp;nbsp;direzione....” '''serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento '''“Quando si preme il tasto.....”''' come si vede nella seguente immagine:&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando '''“punta in&amp;amp;nbsp;direzione....” '''serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/del&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;Moto continuo&amp;amp;nbsp;&amp;lt;/span&amp;gt; ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;Moto continuo&amp;amp;nbsp;&amp;lt;/span&amp;gt; ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=55&amp;oldid=prev</id>
		<title>Leoncino il 16:44, 29 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=55&amp;oldid=prev"/>
				<updated>2014-08-29T16:44:22Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:44, 29 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimento con i tasti =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimento con i tasti =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style&lt;/del&gt;=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;line-height: 1.6;&lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Movimento &lt;/ins&gt;&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;classico&lt;/ins&gt;&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;br&lt;/del&gt;/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;amp;nbsp;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento '''“Quando si preme il tasto.....”''' come si vede nella seguente immagine:&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando '''“punta in&amp;amp;nbsp;direzione....” '''serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/ins&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;== &amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;Moto continuo&amp;amp;nbsp;&amp;lt;&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;span&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;amp;nbsp;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch|Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch|Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=54&amp;oldid=prev</id>
		<title>Leoncino il 16:39, 29 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=54&amp;oldid=prev"/>
				<updated>2014-08-29T16:39:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:39, 29 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Movimenti usando &lt;/del&gt;i tasti =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Movimento con &lt;/ins&gt;i tasti =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;amp;nbsp;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=26&amp;oldid=prev</id>
		<title>Margherita: Movimenti usando i tasti</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=26&amp;oldid=prev"/>
				<updated>2014-08-24T16:10:57Z</updated>
		
		<summary type="html">&lt;p&gt;Movimenti usando i tasti&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:10, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimenti usando i tasti =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimenti usando i tasti =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Category:Scratch|&lt;/ins&gt;Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Margherita</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=25&amp;oldid=prev</id>
		<title>Margherita: Movimenti usando i tasti</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=25&amp;oldid=prev"/>
				<updated>2014-08-24T16:09:42Z</updated>
		
		<summary type="html">&lt;p&gt;Movimenti usando i tasti&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:09, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimenti usando i tasti = &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Movimenti usando i tasti =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Category:Scratch|&lt;/del&gt;Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Margherita</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=24&amp;oldid=prev</id>
		<title>Leoncino il 16:02, 24 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=24&amp;oldid=prev"/>
				<updated>2014-08-24T16:02:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:02, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;= &lt;/ins&gt;Movimenti usando i tasti &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;= &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png|File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Category:Scratch|&lt;/ins&gt;Category:Scratch]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=23&amp;oldid=prev</id>
		<title>Leoncino il 16:01, 24 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=23&amp;oldid=prev"/>
				<updated>2014-08-24T16:01:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:01, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;File:Movimenti2.png|&lt;/ins&gt;File:Movimenti2.png]]&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pagine che includono file inesistenti|Category:Pagine che includono file inesistenti&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Scratch&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=22&amp;oldid=prev</id>
		<title>Leoncino il 16:00, 24 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=22&amp;oldid=prev"/>
				<updated>2014-08-24T16:00:22Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 16:00, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&amp;amp;nbsp;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;[[File:Movimenti2.png]]&lt;/ins&gt;&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&amp;amp;nbsp;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&amp;amp;nbsp;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile privata dello sprite “direzione” che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&amp;amp;nbsp;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Pagine che includono file inesistenti|Category:Pagine che includono file inesistenti]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Pagine che includono file inesistenti|Category:Pagine che includono file inesistenti]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	<entry>
		<id>https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=20&amp;oldid=prev</id>
		<title>Leoncino il 15:59, 24 ago 2014</title>
		<link rel="alternate" type="text/html" href="https://kata.coderdojo.it/wiki/index.php?title=Movimento_con_i_tasti&amp;diff=20&amp;oldid=prev"/>
				<updated>2014-08-24T15:59:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versione delle 15:59, 24 ago 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....”&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata. In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;br&lt;/del&gt;/&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;br&lt;/del&gt;/&amp;gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;“tasto” &lt;/del&gt;che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br/&amp;gt;&lt;/del&gt;tasto.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Movimenti usando i tasti&amp;lt;br/&amp;gt;Per spostare uno sprite nelle 4 direzioni usando le frecce o altri tasti (es. “a s d w”) e ruotandolo&amp;lt;br/&amp;gt;nella direzione del moto, ci si aggancia all'evento “Quando si preme il tasto.....” &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;come si vede nella seguente immagine&amp;lt;br/&amp;gt;[[File:Movimenti1.png|File:Movimenti1.png]]&lt;/ins&gt;&amp;lt;br/&amp;gt;Va gestito ogni tasto di movimento in maniera separata.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&amp;gt;&lt;/ins&gt;In questo caso il comando “punta in&amp;amp;nbsp;direzione....” serve a direzionare lo sprite nella direzione del moto. Il numero di pixel di&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;span&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.6;&amp;quot;&lt;/ins&gt;&amp;gt;spostamento (3 nell'esempio) può essere variato per muovere più o meno velocemente lo sprite.&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;span&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per ottenere un moto continuo è necessario tenere premuto il tasto della direzione del moto. Questo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;tipo di movimento si usa per muovere sprite lungo percorsi o labirinti.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br/&amp;gt;Se si vuole un moto continuo, comandando soltanto la direzione di moto attraverso i tasti, è&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;necessario utilizzare una variabile che conservi il tasto che di volta in volta viene premuto. Si può&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;dunque produrre uno script come il seguente:&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;In questo caso si fa uso della variabile &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;privata dello sprite “direzione” &lt;/ins&gt;che viene impostata ogni volta che si preme un tasto,&amp;lt;br/&amp;gt;di un ciclo infinito (“per sempre”) in cui facciamo spostare lo sprite nella direzione definita dal&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;tasto.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Pagine che includono file inesistenti|Category:Pagine che includono file inesistenti]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Pagine che includono file inesistenti|Category:Pagine che includono file inesistenti]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoncino</name></author>	</entry>

	</feed>