SlideShare a Scribd company logo
1 of 13
Download to read offline
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 1 Mobile Game App Development
Mobile Game Application
Development with Stencyl
Run and Jump
Tutorial (Part 2)
Title: Scene Parameters Duration: 2 hours
Software Required:
Stencyl, Sprite Creator 3, Image Editor (Paint or Photoshop)
Objectives:
1. Create tile sets, regions and backgrounds to be used within a mobile
game.
2. Implement sound effects within a mobile game to enhance game play
experience.
3. Implement change of scene and transitions to be used within a mobile
game.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 2 Mobile Game App Development
Creating the Game Scene
In part 1 of this tutorial, we have learnt how to create actors and customize
them. Now, we shall assign our actor, Runner a location which are the stages
where the game play will take place.
1. File > Create New > Scene
2. Name the Scene as “Game
Scene”.
3. Set the size.
Width: 100 tiles
Height: 15 tiles
4. Select the Background Color to be
Black. Click “Create”
5. A blank scene is now created as
shown below.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 3 Mobile Game App Development
Creating the Tile set
Now that the scene is created, we shall next create a tile set. Tiles enable
our actors to stand on platforms without which, our actor would either fall
off the screen or dangle in mid-air in the game scene. Beautiful readymade
tile sets can be easily downloaded from StencylForge. However, for learning
purpose we shall be creating a tile set from scratch.
(Your course instructor shall perform a demonstration on how to do create a
simple tile using an image editor.)
1. File > Create New > Tiles
2. Name the Tile set as
“Custom Tiles”.
3. Click on “Choose Image”.
4. Select the “Green Custom
Tile.png” image. Click “Add”
5. Change Tile size to
32 by 32 pixels. Click “Apply.”
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 4 Mobile Game App Development
Add tiles to design map
Now that we have our tile set, let us use the tiles to create a simple
platform to design our map.
1. Let’s head back to our game
scene. Dashboard > Scene >
Game Scene
2. The tile that you have
created is now available on
the “Palette” under “Tiles.”
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 5 Mobile Game App Development
3. Click on the tile and drag it
along the bottom part from
one end of the scene to the
other extreme end
horizontally. We shall use 3
layers of tiles for a start.
4. The tiles are set in place. Let
us position our actor standing
on the tiles on the left of the
screen.
5. Select “Runner” from the
palette.
Ensure that the “Snap to
Grid option” is selected.
Place the actor on the left
side of the screen.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 6 Mobile Game App Development
6. The end result will look as
shown in the picture below.
You may test your game at
this point.
Adding regions for pitfalls
After adding the platform tiles, we would like to create regions to act as
pitfalls for our Runner to die if he falls in it. Regions are basically draw able
selected areas on the map in which events can take place. We will be
creating 3 regions (pitfalls) for this section.
1. Take a look at the bottom
right of Stencyl, you will
notice real time X and Y
coordinates of the mouse
cursor.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 7 Mobile Game App Development
2. Place your cursor on the
scene at approximately this
coordinate (640,384)
3. Highlight an area of 4 by 3
tiles. Hit the delete button.
4. The area should now be
empty. Next, click on the
“Add Region (box)” button
found on the left toolbar.
5. Click and drag the cursor on
the empty area which you
have just deleted. You should
see “Region 0” being created.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 8 Mobile Game App Development
Physics (Gravity)
Let’s create some artificial gravity in our game to make our game more
realistic. Runner shall respond to that gravity.
1. Click on the “Physics”tab for
the Game Scene.
2. Here you will notice gravity
for both horizontal and
vertical.
3. In the normal case, gravity is
always vertical. In our case,
we will make use of both.
4. Both gravity are set to 0 by
default. Vertical gravity of
85 will simulate real world
gravity.
5. Set the horizontal gravity of
value (25) to the right.
Task
Add another 2 regions, Region 1 and Region 2 of 4 by 3 tiles area at
the following coordinates.
Region 1 – (1472, 384)
Region 2 – (2368, 384)
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 9 Mobile Game App Development
6. Set the vertical gravity of
value (85) to down.
7. You should see something like
this.
Adding Background
Currently, we have added a black background for the game scene. Let’s make
our game scene nicer by adding a background. You may use your own picture
or downloaded from StencylForge.
1. Click on the StencylForge
icon.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 10 Mobile Game App Development
2. Select “Backgrounds.”
3. Select “Blue Backgrounds.”
Click download.
4. Once the background is
downloaded, click “Attach
Scene.”
5. The background is now
attached to the scene.
6. Click the “Show Background
Button” and save the game.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 11 Mobile Game App Development
Adding Sound
Besides background, StencylForge also has free sound resources which can
be used as the background music or sound effects for our game.
1. Click on the StencylForge
icon.
2. Search for the following
sound clips.
 Minor Item Collected
 Jump Sound
 Gameplay Music
3. Dashboard > Sounds
Check that the 3 sounds have
been downloaded.
Adding Sound Behaviour
Now that we have our sound resources, let’s add some background music to
the game.
1. Click on Scene> Game >
Scene > Behaviors.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 12 Mobile Game App Development
2. Click “Add behaviour.”
3. A window will appear to
display all the behaviours
available in the library.
4. Select Game >Background
Music. Click “Choose.”
5. You have added your first
game behaviour. Within the
“Background Music”
behaviour, select “Gameplay
Music” from the drop down
list for “Music to Play.”
6. Save and test your game.
You should be able to hear
the music play in the
background.
MOE Cat-A Elective Stencyl
Institute of Technical Education Page: 13 Mobile Game App Development
Adding the Title Scene
Congratulations, you have completed Part 2 of this tutorial on Scenes.
Move on the next part on behaviours.
Task
Create the title scene with the following parameters.
Background: Title Background
Actors: Play Button, Instruction Button, Credit Button,
Create a duplicate of “Runner”. Name it “Title Runner”
Remove all behaviours and switch off the gravity.
Your scene should look as shown below.

More Related Content

What's hot

What's hot (18)

unity basics
unity basicsunity basics
unity basics
 
waagen-ecard
waagen-ecardwaagen-ecard
waagen-ecard
 
Game Project / Working with Unity
Game Project / Working with UnityGame Project / Working with Unity
Game Project / Working with Unity
 
Unity
UnityUnity
Unity
 
Presentación Unity
Presentación UnityPresentación Unity
Presentación Unity
 
Unity 3d Basics
Unity 3d BasicsUnity 3d Basics
Unity 3d Basics
 
Manual
ManualManual
Manual
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withc
 
Work flow
Work flowWork flow
Work flow
 
Game design document
Game design document Game design document
Game design document
 
MIND GAME ZONE - Abhijeet
MIND GAME ZONE - AbhijeetMIND GAME ZONE - Abhijeet
MIND GAME ZONE - Abhijeet
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
 
Introduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First GameIntroduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First Game
 
Glow_rapport
Glow_rapportGlow_rapport
Glow_rapport
 
GameMaker Workflow
GameMaker WorkflowGameMaker Workflow
GameMaker Workflow
 
Unity 3D game engine seminar
Unity 3D game engine  seminarUnity 3D game engine  seminar
Unity 3D game engine seminar
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unity
 
Casual and Social Games with Unity
Casual and Social Games with UnityCasual and Social Games with Unity
Casual and Social Games with Unity
 

Similar to Mobile Game App Development with Stencyl

Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditBibekPandit2
 
The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30Mahmoud Samir Fayed
 
unity gaming programing basics for students ppt
unity gaming programing basics for students pptunity gaming programing basics for students ppt
unity gaming programing basics for students pptKathiriyaParthiv
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c languageAshutosh Kumar
 
Presentation OF Manisha gupta mam 2.pptx
Presentation OF Manisha gupta mam 2.pptxPresentation OF Manisha gupta mam 2.pptx
Presentation OF Manisha gupta mam 2.pptxvipin523447
 
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Kobkrit Viriyayudhakorn
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3dDao Tung
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2Kobkrit Viriyayudhakorn
 
4.3 collision detection
4.3   collision detection4.3   collision detection
4.3 collision detectionallenbailey
 
Biological organism simulation using procedural growth "Organimo 1.0"
Biological organism simulation using procedural growth "Organimo 1.0"Biological organism simulation using procedural growth "Organimo 1.0"
Biological organism simulation using procedural growth "Organimo 1.0"Devyani Singh
 
course1-Intrduction-to-the-game-industry.pdf
course1-Intrduction-to-the-game-industry.pdfcourse1-Intrduction-to-the-game-industry.pdf
course1-Intrduction-to-the-game-industry.pdfBoubakerMedanas
 
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.Kobkrit Viriyayudhakorn
 
Team Estimation Game
Team Estimation GameTeam Estimation Game
Team Estimation Gamestevebockman
 
Iproduct presentation(final)
Iproduct presentation(final)Iproduct presentation(final)
Iproduct presentation(final)11009373
 
Lecture 1 Introduction to VR Programming
Lecture 1 Introduction to VR ProgrammingLecture 1 Introduction to VR Programming
Lecture 1 Introduction to VR ProgrammingKobkrit Viriyayudhakorn
 

Similar to Mobile Game App Development with Stencyl (20)

Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
 
Make a match3
Make a match3Make a match3
Make a match3
 
The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196
 
The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30
 
unity gaming programing basics for students ppt
unity gaming programing basics for students pptunity gaming programing basics for students ppt
unity gaming programing basics for students ppt
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
Presentation OF Manisha gupta mam 2.pptx
Presentation OF Manisha gupta mam 2.pptxPresentation OF Manisha gupta mam 2.pptx
Presentation OF Manisha gupta mam 2.pptx
 
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
 
intern.pdf
intern.pdfintern.pdf
intern.pdf
 
4.3 collision detection
4.3   collision detection4.3   collision detection
4.3 collision detection
 
Street runner final
Street runner finalStreet runner final
Street runner final
 
Biological organism simulation using procedural growth "Organimo 1.0"
Biological organism simulation using procedural growth "Organimo 1.0"Biological organism simulation using procedural growth "Organimo 1.0"
Biological organism simulation using procedural growth "Organimo 1.0"
 
course1-Intrduction-to-the-game-industry.pdf
course1-Intrduction-to-the-game-industry.pdfcourse1-Intrduction-to-the-game-industry.pdf
course1-Intrduction-to-the-game-industry.pdf
 
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
 
Team Estimation Game
Team Estimation GameTeam Estimation Game
Team Estimation Game
 
Portfolio
PortfolioPortfolio
Portfolio
 
Iproduct presentation(final)
Iproduct presentation(final)Iproduct presentation(final)
Iproduct presentation(final)
 
Lecture 1 Introduction to VR Programming
Lecture 1 Introduction to VR ProgrammingLecture 1 Introduction to VR Programming
Lecture 1 Introduction to VR Programming
 

Recently uploaded

Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Niamh verma
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...wyqazy
 

Recently uploaded (8)

Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
 

Mobile Game App Development with Stencyl

  • 1. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 1 Mobile Game App Development Mobile Game Application Development with Stencyl Run and Jump Tutorial (Part 2) Title: Scene Parameters Duration: 2 hours Software Required: Stencyl, Sprite Creator 3, Image Editor (Paint or Photoshop) Objectives: 1. Create tile sets, regions and backgrounds to be used within a mobile game. 2. Implement sound effects within a mobile game to enhance game play experience. 3. Implement change of scene and transitions to be used within a mobile game.
  • 2. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 2 Mobile Game App Development Creating the Game Scene In part 1 of this tutorial, we have learnt how to create actors and customize them. Now, we shall assign our actor, Runner a location which are the stages where the game play will take place. 1. File > Create New > Scene 2. Name the Scene as “Game Scene”. 3. Set the size. Width: 100 tiles Height: 15 tiles 4. Select the Background Color to be Black. Click “Create” 5. A blank scene is now created as shown below.
  • 3. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 3 Mobile Game App Development Creating the Tile set Now that the scene is created, we shall next create a tile set. Tiles enable our actors to stand on platforms without which, our actor would either fall off the screen or dangle in mid-air in the game scene. Beautiful readymade tile sets can be easily downloaded from StencylForge. However, for learning purpose we shall be creating a tile set from scratch. (Your course instructor shall perform a demonstration on how to do create a simple tile using an image editor.) 1. File > Create New > Tiles 2. Name the Tile set as “Custom Tiles”. 3. Click on “Choose Image”. 4. Select the “Green Custom Tile.png” image. Click “Add” 5. Change Tile size to 32 by 32 pixels. Click “Apply.”
  • 4. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 4 Mobile Game App Development Add tiles to design map Now that we have our tile set, let us use the tiles to create a simple platform to design our map. 1. Let’s head back to our game scene. Dashboard > Scene > Game Scene 2. The tile that you have created is now available on the “Palette” under “Tiles.”
  • 5. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 5 Mobile Game App Development 3. Click on the tile and drag it along the bottom part from one end of the scene to the other extreme end horizontally. We shall use 3 layers of tiles for a start. 4. The tiles are set in place. Let us position our actor standing on the tiles on the left of the screen. 5. Select “Runner” from the palette. Ensure that the “Snap to Grid option” is selected. Place the actor on the left side of the screen.
  • 6. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 6 Mobile Game App Development 6. The end result will look as shown in the picture below. You may test your game at this point. Adding regions for pitfalls After adding the platform tiles, we would like to create regions to act as pitfalls for our Runner to die if he falls in it. Regions are basically draw able selected areas on the map in which events can take place. We will be creating 3 regions (pitfalls) for this section. 1. Take a look at the bottom right of Stencyl, you will notice real time X and Y coordinates of the mouse cursor.
  • 7. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 7 Mobile Game App Development 2. Place your cursor on the scene at approximately this coordinate (640,384) 3. Highlight an area of 4 by 3 tiles. Hit the delete button. 4. The area should now be empty. Next, click on the “Add Region (box)” button found on the left toolbar. 5. Click and drag the cursor on the empty area which you have just deleted. You should see “Region 0” being created.
  • 8. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 8 Mobile Game App Development Physics (Gravity) Let’s create some artificial gravity in our game to make our game more realistic. Runner shall respond to that gravity. 1. Click on the “Physics”tab for the Game Scene. 2. Here you will notice gravity for both horizontal and vertical. 3. In the normal case, gravity is always vertical. In our case, we will make use of both. 4. Both gravity are set to 0 by default. Vertical gravity of 85 will simulate real world gravity. 5. Set the horizontal gravity of value (25) to the right. Task Add another 2 regions, Region 1 and Region 2 of 4 by 3 tiles area at the following coordinates. Region 1 – (1472, 384) Region 2 – (2368, 384)
  • 9. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 9 Mobile Game App Development 6. Set the vertical gravity of value (85) to down. 7. You should see something like this. Adding Background Currently, we have added a black background for the game scene. Let’s make our game scene nicer by adding a background. You may use your own picture or downloaded from StencylForge. 1. Click on the StencylForge icon.
  • 10. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 10 Mobile Game App Development 2. Select “Backgrounds.” 3. Select “Blue Backgrounds.” Click download. 4. Once the background is downloaded, click “Attach Scene.” 5. The background is now attached to the scene. 6. Click the “Show Background Button” and save the game.
  • 11. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 11 Mobile Game App Development Adding Sound Besides background, StencylForge also has free sound resources which can be used as the background music or sound effects for our game. 1. Click on the StencylForge icon. 2. Search for the following sound clips.  Minor Item Collected  Jump Sound  Gameplay Music 3. Dashboard > Sounds Check that the 3 sounds have been downloaded. Adding Sound Behaviour Now that we have our sound resources, let’s add some background music to the game. 1. Click on Scene> Game > Scene > Behaviors.
  • 12. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 12 Mobile Game App Development 2. Click “Add behaviour.” 3. A window will appear to display all the behaviours available in the library. 4. Select Game >Background Music. Click “Choose.” 5. You have added your first game behaviour. Within the “Background Music” behaviour, select “Gameplay Music” from the drop down list for “Music to Play.” 6. Save and test your game. You should be able to hear the music play in the background.
  • 13. MOE Cat-A Elective Stencyl Institute of Technical Education Page: 13 Mobile Game App Development Adding the Title Scene Congratulations, you have completed Part 2 of this tutorial on Scenes. Move on the next part on behaviours. Task Create the title scene with the following parameters. Background: Title Background Actors: Play Button, Instruction Button, Credit Button, Create a duplicate of “Runner”. Name it “Title Runner” Remove all behaviours and switch off the gravity. Your scene should look as shown below.