<?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=Parallax</id>
	<title>Parallax - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Parallax"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Parallax&amp;action=history"/>
	<updated>2026-06-27T07:35:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Parallax&amp;diff=1864&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Parallax&amp;diff=1864&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:18Z</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=Parallax&amp;diff=1863&amp;oldid=prev</id>
		<title>scratch&gt;Adzboy: Flagged as not meeting Wiki Standards</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Parallax&amp;diff=1863&amp;oldid=prev"/>
		<updated>2022-07-20T15:05:50Z</updated>

		<summary type="html">&lt;p&gt;Flagged as not meeting Wiki Standards&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wiki Standards|date=July 2022|Not formal enough}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;parallax&amp;#039;&amp;#039;&amp;#039; is a [[project]] on which the user controls a background by moving their mouse. Mostly these projects are created so the user can relax and view the sunset or anything else. Sometimes people just like to show off their art in a parallax project.{{citation needed|date=June 2021}}&lt;br /&gt;
&lt;br /&gt;
==Making a Parallax==&lt;br /&gt;
When creating a parallax, the art must be broken up into different [[sprite]]s, and the sprites must be layered to create an image. Once the sprites have been created, use the following [[script]] to create the parallax effect:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
When green flag clicked&lt;br /&gt;
forever&lt;br /&gt;
    go to x((mouse x)/(. . .::grey)) y: ((mouse y) / (. . .::grey))// where the amount variable is how much the sprite moves with 1 being going to mouse x and mouse y and infinity staying at 0,0.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
A handy parallax [[My Blocks|custom block]] can be made using the following code:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define Parallax (amount)&lt;br /&gt;
go to x((mouse x)/(amount)) y: ((mouse y) / (amount))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
To use this parallax engine, put the following code in the back sprite&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
When green flag clicked&lt;br /&gt;
forever&lt;br /&gt;
    Parallax [20]::custom&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
And then in the middle sprite&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
When green flag clicked&lt;br /&gt;
forever&lt;br /&gt;
    Parallax [10]::custom&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
And in the front sprite&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
When green flag clicked&lt;br /&gt;
forever&lt;br /&gt;
    Parallax [5]::custom&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parallax Effect On Moving Sprite==&lt;br /&gt;
Sometimes a parallax effect on a moving sprite is desired. This could be used for things like a bird moving across the sky, a sprite walking across the screen, etc. Here&amp;#039;s what the custom block looks like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define Parallax (amount) (x) (y)&lt;br /&gt;
go to x(((mouse x)/(amount)) + (x)) y: (((mouse y) / (amount)) + (y))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And here&amp;#039;s an example of how it can be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
set [x v] to [240]&lt;br /&gt;
set [y v] to [0]&lt;br /&gt;
set [speed v] to [2]&lt;br /&gt;
Parallax [20] (x) (y)::custom&lt;br /&gt;
change [x v] by ((speed) * [-1])&lt;br /&gt;
repeat until &amp;lt;(x position) \&amp;lt; [-240]&amp;gt;&lt;br /&gt;
    Parallax [20] (x) (y)::custom&lt;br /&gt;
    change [x v] by ((speed) * [-1])&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This code would make a sprite start on the right side of the screen and move to the left side.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Art Projects]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;Adzboy</name></author>
	</entry>
</feed>