<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=How_to_Make_Dice</id>
	<title>How to Make Dice - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=How_to_Make_Dice"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_Dice&amp;action=history"/>
	<updated>2026-05-04T15:49:37Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_Dice&amp;diff=1818&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_Dice&amp;diff=1818&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:17Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key digida:diff:1.41:old-1817:rev-1818 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_Dice&amp;diff=1817&amp;oldid=prev</id>
		<title>scratch&gt;Jvvg в 21:53, 6 июня 2022</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_Dice&amp;diff=1817&amp;oldid=prev"/>
		<updated>2022-06-06T21:53:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This article will walk through &amp;#039;&amp;#039;&amp;#039;creating a simple die&amp;#039;&amp;#039;&amp;#039; with [[Scratch]]. When finished a user should be able to press space and a random dice face should show on the screen. Start by creating a new [[project]] and delete the Scratch Cat [[sprite]].&lt;br /&gt;
&lt;br /&gt;
== Creating the Costumes ==  &lt;br /&gt;
[[File:Dice Examples.png|thumb|An example of dice faces.]]Before coding is begun, several [[costumes]] have to be made. For this, 6 costumes are required, each to represent a face of the dice. It does not have to be the traditional style, it could even be just numbers. However, make sure they are all different. Once that is finished, name the costumes from 1-6. This will be necessary later on. &lt;br /&gt;
&lt;br /&gt;
== Coding the Dice ==&lt;br /&gt;
Now that all the costumes have been created, it is time to code the dice to add functionality.&lt;br /&gt;
&lt;br /&gt;
=== Starting the Program ===&lt;br /&gt;
Unlike many{{citation needed|date=August 2021}} programs on Scratch, which start with the &amp;lt;sb&amp;gt;when green flag clicked&amp;lt;/sb&amp;gt; [[block]], this program will start with the &amp;lt;sb&amp;gt;when this sprite clicked&amp;lt;/sb&amp;gt; block. Just to make sure that the dice displays the output in the centre of the [[stage]], use the &amp;lt;sb&amp;gt;go to x: () y: ()&amp;lt;/sb&amp;gt; block. The code should look like this:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when this sprite clicked&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Rolling the Dice ===&lt;br /&gt;
Now that the program can start, it is time to create the main mechanism. The code needs to be added to randomise the outcome. For this, the &amp;lt;sb&amp;gt;switch costume to ( v)&amp;lt;/sb&amp;gt; and &amp;lt;sb&amp;gt;pick random () to ()&amp;lt;/sb&amp;gt; blocks are needed. The random block with pick a random number between 1 and 6, which will make the sprite will switch its costume to the costume named with the number. Now join them together like so:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
switch costume to (pick random (1) to (6))//do not change any of this, it could mess up the program&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
Now join all the blocks together to form this script:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when this sprite clicked&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
switch costume to (pick random (1) to (6))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This [[:Category:Tutorials|tutorial]] is now complete.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;Jvvg</name></author>
	</entry>
</feed>