<?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=Sound_On%2FOff_Button</id>
	<title>Sound On/Off Button - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Sound_On%2FOff_Button"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Sound_On/Off_Button&amp;action=history"/>
	<updated>2026-05-21T17:05:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Sound_On/Off_Button&amp;diff=1642&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Sound_On/Off_Button&amp;diff=1642&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;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-1641:rev-1642 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Sound_On/Off_Button&amp;diff=1641&amp;oldid=prev</id>
		<title>scratch&gt;CrazyBoy826: clarify</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Sound_On/Off_Button&amp;diff=1641&amp;oldid=prev"/>
		<updated>2022-05-01T23:44:49Z</updated>

		<summary type="html">&lt;p&gt;clarify&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{expand|date=August 2018}}&lt;br /&gt;
{{warning|Loud sounds (such as screams and certain genres of music) can hurt the viewer&amp;#039;s ears or even cause deafness; especially if the volume is set too high or the user is using head/earphones. When using such sounds, it is always wise to add a warning in the [[Notes and Credits]] or lower the volume of the audio if possible.}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;sound on/off button&amp;#039;&amp;#039;&amp;#039; may be useful when making a [[Game Projects|game]] that has music or sound that can be muted or stopped.&lt;br /&gt;
&lt;br /&gt;
To make a sound on/off button, one will need a [[sprite]] in the form of a switch. The switch must provide two [[costume]]s, one to represent when [[sound]] is on, and the other to represent when sound is off.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
switch costume to (sound-on v)&lt;br /&gt;
&lt;br /&gt;
when this sprite clicked&lt;br /&gt;
next costume&lt;br /&gt;
if &amp;lt;(costume [number v]) = [2]&amp;gt; then //assuming the second costume is &amp;quot;off&amp;quot; and the first &amp;quot;on&amp;quot;&lt;br /&gt;
set volume to (0)% //if now off, turn off the volume&lt;br /&gt;
else&lt;br /&gt;
set volume to (100)% //if now on, turn on the volume&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
This script can be modified to allow the {{val|volume}} to be changed.&lt;br /&gt;
&lt;br /&gt;
{{note|When using this script, the sound will not pause and will keep playing silently. Due to this, when the sound resumes, it will not be in the same place as when it was paused. Making a script to do this is extremely difficult, and has been suggested to have a block added for it multiple times.{{cite post|0bitasy0|26/12/2014|Pause/Continue Sound Block[title]|[[topic:76378]]}}{{cite post|TheJellyConference|20/12/2014|&amp;quot;Pause Sounds&amp;quot; and &amp;quot;Resume Sounds&amp;quot; blocks?[title]|[[topic:74670]]}}{{cite post|yoshifan509|31/5/2017|Pause Sound block[title]|[[topic:262977]]}}}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Sound]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;CrazyBoy826</name></author>
	</entry>
</feed>