<?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_a_Top_Down_Scroller_Game</id>
	<title>How to Make a Top Down Scroller Game - История изменений</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_a_Top_Down_Scroller_Game"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_a_Top_Down_Scroller_Game&amp;action=history"/>
	<updated>2026-04-09T03:54:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_a_Top_Down_Scroller_Game&amp;diff=1794&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_a_Top_Down_Scroller_Game&amp;diff=1794&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:16Z</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-1793:rev-1794 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=How_to_Make_a_Top_Down_Scroller_Game&amp;diff=1793&amp;oldid=prev</id>
		<title>scratch&gt;Filmlover12: Added bullet points because the list was all in a line.</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=How_to_Make_a_Top_Down_Scroller_Game&amp;diff=1793&amp;oldid=prev"/>
		<updated>2022-01-18T16:44:52Z</updated>

		<summary type="html">&lt;p&gt;Added bullet points because the list was all in a line.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wiki Standards|date=December 2020}}&lt;br /&gt;
Top down scrollers are a very common type of game in Scratch as they are generally easy to make. A top down scroller consists of a scrolling map with walls and objects. There is a player that moves around the map and can be blocked by walls and other obstacles. There can be weapons, enemies, collectables or even inventory systems.&lt;br /&gt;
&lt;br /&gt;
== Scrolling ==&lt;br /&gt;
First, a scrolling base is needed (please note that there will be no walls yet). It can be made by drawing levels or by uploading images. If you are drawing it, try to use vector, then convert to bitmap to trim of the edges (this is very important). Do not put any wall or obstacles as that will be for the wall sprite. (if you are uploading a picture then you can keep it. Once you have the levels, label them for easier scripting. The middle one should be 0,0, the one on the right should be 1,0, and so on. Then make a player, it should be about 50 x 50 pixels big.&lt;br /&gt;
&lt;br /&gt;
===Making the scripts===&lt;br /&gt;
Make 2 variables in the player sprite and make sure that they are for all sprites. &lt;br /&gt;
&amp;lt;scratchblocks&amp;gt; (scroll x) &lt;br /&gt;
(scroll y) &amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then go to the map and make these local variables and this custom block:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt; (x)&lt;br /&gt;
(y) &amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt; define clone at (x) (y) (costume) &lt;br /&gt;
set [x v] to ((0) - ((x) * (480)))&lt;br /&gt;
set [y v] to ((0) - ((y) * (360)))&lt;br /&gt;
switch costume to (costume)&lt;br /&gt;
create clone of (myself v)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you can put the [[When Green Flag Clicked (block) |when green flag clicked block]] and [[Create Clone of () (block)| create a clone block]] at the desired location and the correct costume all the way through all the map costumes. Use the labels as guides to what number to put. Make sure to put a wait 0.01 seconds block before just so the clones don&amp;#039;t get deleted right when they are cloned (by the last script in this section)&lt;br /&gt;
&lt;br /&gt;
Then make this script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when I start as a clone&lt;br /&gt;
forever&lt;br /&gt;
 go to x: ((scroll x) - (x)) y: ((scroll y ) - (y))&lt;br /&gt;
 if &amp;lt;&amp;lt;(x position) = ((scroll x) - (x))&amp;gt; and &amp;lt; (y position) = ((scroll y) - (y)) &amp;gt;&amp;gt; then&lt;br /&gt;
  show&lt;br /&gt;
 else&lt;br /&gt;
  hide&lt;br /&gt;
 end&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before moving on, add this script to prevent clones from stacking on top of each other:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
delete this clone&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Player Movement==&lt;br /&gt;
Once you have the map, you need a movement system that has wall sensing and scrolling. To begin, duplicate the map sprite but name it wall. Then add walls and obstacles. Finally delete the map, leaving just the obstacles. If you are uploading an image, redraw the wall&amp;#039;s shape (don&amp;#039;t waste time drawing the insides) and set ghost effect to 100. Do not use the hide block for this. You can also make it sense the color of the walls if the image has walls of the exact color.&lt;br /&gt;
&lt;br /&gt;
===Making the scripts===&lt;br /&gt;
start by making this script in the player sprite:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
go to x:(0) y:(0)&lt;br /&gt;
forever&lt;br /&gt;
 if &amp;lt;key (up arrow v) pressed&amp;gt; then&lt;br /&gt;
  change y by (10) //or whatever you want to player speed to be (4 is slow, 8 is normal, 15 is fast)&lt;br /&gt;
  if &amp;lt;touching (wall v)&amp;gt; then&lt;br /&gt;
  change y by (-10) // or whatever you put in the top&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
 if &amp;lt;key (up arrow v) pressed&amp;gt; then&lt;br /&gt;
  change y by (-10) //do the negative of what you put for the up movement &lt;br /&gt;
  if &amp;lt;touching (wall v)&amp;gt; then&lt;br /&gt;
  change y by (10) //same as previous&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
 if &amp;lt;key (up left arrow v) pressed&amp;gt; then&lt;br /&gt;
  change x by (10) &lt;br /&gt;
  if &amp;lt;touching (wall v)&amp;gt; then&lt;br /&gt;
  change x by (-10)&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
 if &amp;lt;key (up right arrow v) pressed&amp;gt; then&lt;br /&gt;
  change x by (-10) &lt;br /&gt;
  if &amp;lt;touching (wall v)&amp;gt; then&lt;br /&gt;
  change x by (10)&lt;br /&gt;
  end&lt;br /&gt;
 end&lt;br /&gt;
 change [scroll x v] by ((0) - (x position))&lt;br /&gt;
 change [scroll y v] by ((0) - (y position))&lt;br /&gt;
 go to x: (0) y: (0)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That is all the scripts for player movement and wall detection. &lt;br /&gt;
==Getting Advanced==&lt;br /&gt;
The scripts above are just to get you started, here are some advanced ways to make your game more fun.&lt;br /&gt;
===Enemies===&lt;br /&gt;
Enemies are things that try to kill your player. To make an enemy, you have to combine the scripts of the player and the walls, and add some more code. To do this, duplicate the player sprite, but delete the ending 3 blocks. Then you can get the cloning scripts from the walls, and the rest is up to you. There are many type of enemies, including dumb ones that glide straight to your player, smart ones the identifies a path to your player, and semi-smart ones that are a combination of both. They are harder to make, so it they are not included in this tutorial.&lt;br /&gt;
&lt;br /&gt;
===Achievements===&lt;br /&gt;
Achievements are things that you have to do a specific thing or things to get. Achievements can vary greatly, so it is up to you to decide what to make. However, an achievement needs a trigger, such as getting a certain amount of coins or winning a level in hardcore.&lt;br /&gt;
&lt;br /&gt;
===Collectables===&lt;br /&gt;
Collectables are things that you can collect, in most cases it is coins or currency that can be traded for items. They can also be skill points that increase your level. It can also be pieces that the player need to collect in order to win a level.&lt;br /&gt;
&lt;br /&gt;
===Finishing Up===&lt;br /&gt;
Once you have everything you want in your game, you can share it with the community. Top down scrollers are very common, but they vary greatly. Before you make it official, be sure to make sure it has no obvious glitches or bugs. &lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*[https://scratch.mit.edu/projects/284516654/ Zombie Cube Escape! by griffpatch]&lt;br /&gt;
*[https://scratch.mit.edu/projects/2021533/ Top-Down Scroller Demo by Happycat32210]&lt;br /&gt;
*[https://scratch.mit.edu/projects/382535462/ Run || Top-Down Scroller by berry_mochi]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials|Top Down Scroller Game]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;Filmlover12</name></author>
	</entry>
</feed>