<?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=Stoppable_Timer</id>
	<title>Stoppable Timer - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Stoppable_Timer"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Stoppable_Timer&amp;action=history"/>
	<updated>2026-04-21T08:49:00Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Stoppable_Timer&amp;diff=1664&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Stoppable_Timer&amp;diff=1664&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:13Z</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;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&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;2&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;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Stoppable_Timer&amp;diff=1663&amp;oldid=prev</id>
		<title>scratch&gt;TheTrillion: Depersonalisation.</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Stoppable_Timer&amp;diff=1663&amp;oldid=prev"/>
		<updated>2021-07-03T00:07:21Z</updated>

		<summary type="html">&lt;p&gt;Depersonalisation.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial explains how to make a &amp;#039;&amp;#039;&amp;#039;stoppable timer&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Programming==&lt;br /&gt;
Three [[variable]]s are needed:&lt;br /&gt;
* &amp;lt;sb&amp;gt;(custom timer)&amp;lt;/sb&amp;gt; {{-}} the custom [[timer (value)|timer]]&lt;br /&gt;
* &amp;lt;sb&amp;gt;(time stopped)&amp;lt;/sb&amp;gt; {{-}} the timer to be incremented while the custom timer is paused&lt;br /&gt;
* &amp;lt;sb&amp;gt;(stopped?)&amp;lt;/sb&amp;gt; {{-}} a [[boolean]] that determines whether the custom timer is paused&lt;br /&gt;
&lt;br /&gt;
Three [[broadcast]]s are used:&lt;br /&gt;
* &amp;quot;reset&amp;quot; {{-}} resets all counters&lt;br /&gt;
* &amp;quot;stop&amp;quot; {{-}} pauses the custom timer&lt;br /&gt;
* &amp;quot;start&amp;quot; {{-}} starts the custom timer&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
broadcast (reset v) //only include this if it is liked that the timer be reset upon the green flag being clicked&lt;br /&gt;
forever&lt;br /&gt;
    if &amp;lt;(stopped?) = [1]&amp;gt; then //if the timer is stopped&lt;br /&gt;
        set [timeStopped v] to ((timer) - (custom timer)) //the time stopped is equal to the value of the timer minus the value of the custom timer&lt;br /&gt;
    else //if the timer is not stopped&lt;br /&gt;
        set [custom timer v] to ((timer) - (time stopped)) //the custom timer&amp;#039;s value is equal to the timer&amp;#039;s value minus the time stopped&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
when I receive [reset v] //reset all counters without disturbing &amp;quot;isStopped?&amp;quot;&lt;br /&gt;
reset timer&lt;br /&gt;
set [custom timer v] to [0]&lt;br /&gt;
set [time stopped v] to [0]&lt;br /&gt;
&lt;br /&gt;
when I receive [stop v]&lt;br /&gt;
set [stopped? v] to [1] //have the timer be stopped&lt;br /&gt;
&lt;br /&gt;
when I receive [start v]&lt;br /&gt;
set [stopped? v] to [0] //have the timer be unstopped&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example Uses==&lt;br /&gt;
A few possible uses for a stoppable timer include:&lt;br /&gt;
&lt;br /&gt;
* A racing [[Project Types#Games|game]]&lt;br /&gt;
* Timed events&lt;br /&gt;
* Pausing while using a timer&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;br /&gt;
[[ja:停止できるタイマー]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;TheTrillion</name></author>
	</entry>
</feed>