Actions

Side Scrolling Game Tutorial

From Shoot Em Up Kit

Revision as of 13:48, 24 May 2020 by Wikiadmin (talk | contribs) (Created page with "==Method 1: Scrolling Background== In Level Settings in the Tools Menu you can set a background sprite to move horizontally at a set s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Method 1: Scrolling Background

In Level Settings in the Tools Menu you can set a background sprite to move horizontally at a set speed as shown:


Click Edit Background Settings

HorizontalShooter02.png


Select Sprite Background:

HorizontalShooter03.png


Set the Movement property to Scroll -X:

HorizontalShooter04.png


You can then use a fixed camera and move the player up/down/left/right on the screen.


Method 2: Scrolling Scenery

This is similar to the Scrolling Background method but instead of a background sprite you add NPCs as background scenery items and set the AI to move in the –X direction as shown:


HorizontalShooter18.png


HorizontalShooter06.png


HorizontalShooter07.png


Method 3: Moving player

Place a player in the scene and rotate it to point horizontally using the Rotate tool File:Gizmo04.png. You can choose a side-on view or a top-down view, as shown here.


HorizontalShooter09.png


In the In the Define menu, click on the Movement Definition and select Velocity +X


HorizontalShooter10.png


Next scroll down to Velocity and set X to the required constant speed, which is the speed the ship will move even without joypad input. This makes the ship move steadily across the level.


HorizontalShooter11.png


Select the Player ship and set the Movement Definition to the Velocity +X definition we have just modified.


HorizontalShooter12.png


Next we can place NPCs and change the AI to from Chase to Move –X


HorizontalShooter13.png


HorizontalShooter14.png


Next we can place scenery items. In this example we have added some background tiles.


HorizontalShooter15.jpg


Next place a camera and set it to follow the player as shown:


HorizontalShooter17.png


This is a simple horizontal scrolling game that you can build on to make a more complex game.