<?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=Mouse-Over</id>
	<title>Mouse-Over - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Mouse-Over"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Mouse-Over&amp;action=history"/>
	<updated>2026-06-17T22:43:29Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Mouse-Over&amp;diff=1630&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Mouse-Over&amp;diff=1630&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:12Z</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-1629:rev-1630 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Mouse-Over&amp;diff=1629&amp;oldid=prev</id>
		<title>scratch&gt;TemplatesFTW: Automated edit: fixed 1 style guideline</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Mouse-Over&amp;diff=1629&amp;oldid=prev"/>
		<updated>2022-01-29T19:25:34Z</updated>

		<summary type="html">&lt;p&gt;Automated edit: fixed 1 style guideline&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Mouse-Over&amp;#039;&amp;#039;&amp;#039; script is a simple [[script]] which enables the [[Scratcher]] to change a [[sprite]]&amp;#039;s appearance or function simply by moving the [[mouse]] over a trigger area or sprite.  This is most commonly used for aesthetic appeal; however, this method can be applied to multiple scenarios.&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
There are many different ways of using this type of script. This tutorial will cover two using a sprite for each button, and two for a sprite that serves as many buttons.&lt;br /&gt;
&lt;br /&gt;
===Single Button Costume Changing===&lt;br /&gt;
This script will cause the sprite to change to a different &amp;quot;highlighted&amp;quot; [[costume]] when touching the mouse. It can be used for menu buttons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;touching [mouse-pointer v]?&amp;gt; then&lt;br /&gt;
switch costume to [highlighted v]&lt;br /&gt;
else&lt;br /&gt;
switch costume to [normal v]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Single Button Graphic Effects===&lt;br /&gt;
This script uses a different concept, it will not change costume but in fact use [[Graphic Effect|graphical effects]] (in this case the [[Graphic Effect#Color|color effect]]) to change its appearance, while touching the mouse-pointer, before reverting to its usual look.&lt;br /&gt;
&lt;br /&gt;
Of course, any effect one wishes to use can take place using this script; these are only examples.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;touching [mouse-pointer v]?&amp;gt; then&lt;br /&gt;
set [color v] effect to (25)&lt;br /&gt;
else&lt;br /&gt;
set [color v] effect to (0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another example is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;touching [mouse-pointer v]?&amp;gt; then&lt;br /&gt;
set [brightness v] effect to (25)&lt;br /&gt;
else&lt;br /&gt;
set [brightness v] effect to (0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiple Buttons in One Costume===&lt;br /&gt;
If multiple buttons are shown in a single costume in a single sprite, only the costume changing method is feasible. It is similar to the script above, except with more costumes, and more [[if () Then (block)|if]] clauses. A costume must be created showing each button highlighted, and one more with none highlighted.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;&amp;lt;(mouse y) &amp;gt; [30]&amp;gt; and &amp;lt;touching [mouse-pointer v]?&amp;gt;&amp;gt; then&lt;br /&gt;
switch costume to [first v]&lt;br /&gt;
else&lt;br /&gt;
if &amp;lt;&amp;lt;(mouse y) &amp;gt; [0]&amp;gt; and &amp;lt;touching [mouse-pointer v]?&amp;gt;&amp;gt; then&lt;br /&gt;
switch costume to [second v]&lt;br /&gt;
else&lt;br /&gt;
if &amp;lt;&amp;lt;(mouse y) &amp;gt; [-30]&amp;gt; and &amp;lt;touching [mouse-pointer v]?&amp;gt;&amp;gt; then&lt;br /&gt;
switch costume to [third v]&lt;br /&gt;
else&lt;br /&gt;
switch costume to [fourth v]&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
This script assumes three buttons, with the bottom at [[Y Position (value)|Y Position]] 30, 0, and -30, respectively. It senses if it is touching, and which one is selected, by use of the [[Mouse Y (value)|Mouse Y]] value.&lt;br /&gt;
&lt;br /&gt;
===Multiple Buttons Stamping===&lt;br /&gt;
The other option for only using one sprite for multiple buttons is to [[Stamps|stamp]]. A costume must be created for each button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
erase all&lt;br /&gt;
go to x: (0) y: (30)&lt;br /&gt;
switch costume to [first v]&lt;br /&gt;
clear graphic effects&lt;br /&gt;
repeat (3)&lt;br /&gt;
stamp&lt;br /&gt;
change y by (-30)&lt;br /&gt;
next costume&lt;br /&gt;
end&lt;br /&gt;
set [color v] effect to (25)&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;&amp;lt;&amp;lt;(mouse y) &amp;gt; [25]&amp;gt; and &amp;lt;(mouse y) &amp;lt; [35]&amp;gt;&amp;gt; and &amp;lt;&amp;lt;(mouse x) &amp;gt; [5]&amp;gt; and &amp;lt;(mouse x) &amp;lt; [5]&amp;gt;&amp;gt;&amp;gt; then&lt;br /&gt;
go to x: (0) y: (30)&lt;br /&gt;
switch costume to [first v]&lt;br /&gt;
show&lt;br /&gt;
else&lt;br /&gt;
if &amp;lt;&amp;lt;&amp;lt;(mouse y) &amp;gt; [-5]&amp;gt; and &amp;lt;(mouse y) &amp;lt; [5]&amp;gt;&amp;gt; and &amp;lt;&amp;lt;(mouse x) &amp;gt; [5]&amp;gt; and &amp;lt;(mouse x) &amp;lt; [5]&amp;gt;&amp;gt;&amp;gt; then&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
switch costume to [second v]&lt;br /&gt;
show&lt;br /&gt;
else&lt;br /&gt;
if &amp;lt;&amp;lt;&amp;lt;(mouse y) &amp;gt; [-35]&amp;gt; and &amp;lt;(mouse y) &amp;lt; [-25]&amp;gt;&amp;gt; and &amp;lt;&amp;lt;(mouse x) &amp;gt; [5]&amp;gt; and &amp;lt;(mouse x) &amp;lt; [5]&amp;gt;&amp;gt;&amp;gt; then&lt;br /&gt;
go to x: (0) y: (-30)&lt;br /&gt;
switch costume to [third v]&lt;br /&gt;
show&lt;br /&gt;
else&lt;br /&gt;
hide&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
This example first stamps the regular costumes in their positions. Then, when any of the stamps are being touched, the sprite goes to it, and adjusts its color without stamping. If none are, it hides.&lt;br /&gt;
&lt;br /&gt;
Optionally, the graphical adjustments can be replaced with costume changing. Depending on the order of the costume, this may require the setup script to be adjusted.&lt;br /&gt;
&lt;br /&gt;
==Uses==&lt;br /&gt;
This script has many different uses, however, these are a few:&lt;br /&gt;
* Improving the aesthetics (how good something looks) of a [[project]]&lt;br /&gt;
* Letting a user know that an object can be clicked&lt;br /&gt;
* Making a project seem more professional&lt;br /&gt;
* Recreating menus that a user has seen in a video game&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;TemplatesFTW</name></author>
	</entry>
</feed>