SlideShare uma empresa Scribd logo
1 de 44
Windows 8  Windows Phone 8  Web  Mobile  … and more! 
WakeUpAndCode.com 
@shahedC
Prerequisites 
• Ghost Shooter Tutorial 
• Flapping Bird Tutorial 
Both available at: 
Construct 2 – Step by Step 
• http://wakeupandcode.com/construct-2-step-by-step/
Step 1: Save a New Project, “platformer.capx” 
Save! 
Enter 
File name
Step 2: Change Layout size 
Layout Size 
• Width = 4000 
• Height = 2048
Step 3: Prepare Your Layers 
Bottom layer 
• Rename it “Background” 
• Remember to Lock it later! 
New layer 
• Add new layer 
• Rename it “Main”
Step 4: Add Background, update properties 
Update: 
• Name 
• Position 
• Size
Step 5: Add New Sprite -> Tile 
Tips: 
• Rename sprite object to “Tile” 
• Check “Snap to Grid”. 
• Ctrl-Click and Drag to create more.
Step 6: Add New Sprite -> Player 
Tips: 
• Rename sprite object to “Player” 
• Rename Default animation to “Idle” 
• Set origin to bottom center point
Step 7: Add New Sprite -> PlayerBox 
Tips: 
• Rename sprite object to “PlayerBox” 
• Set origin to bottom center point
Step 8: Cover Player with PlayerBox 
Tips: 
• Resize PlayerBox to match Player 
• Position PlayerBox over Player
Step 9: Add Behaviors to PlayerBox 
Add the following behaviors: 
• Platform 
• ScrollTo
Step 10: Update PlayerBox Properties 
Update the following for Platform: 
• Jump Strength = 750 
• Gravity = 2500 
Also update: 
• Initial visibility = Invisible
Step 11: Add Behaviors to Tile object 
Add the following behaviors: 
• Solid
Step 12: Add Event for Player to follow Box 
Add Event 
• Object: System 
• Condition: Every tick 
• Action: 
• Object: Player 
• Event: Set position to PlayerBox (image point 0)
Step 13: Add Keyboard Support 
Tips: 
• Insert New Object  Keyboard 
• Add 2 events for Left/Right
Step 14: Update Project Window Size 
Tip: Set Window Size: 800, 600
Step 15: Create More Tiles 
Tip: Ctrl-Click and Drag to create more tiles
Step 16: Add Run and Jump Animations 
Tips: 
• Right-Click Animations window to Add each animation 
• Import Sprite Strip as 4x4 for each 
• Remove empty frames 
• Clean up any stray pixels 
• Rename to “Run” and “Jump”, respectively 
• Set origin to bottom center point for all frames
Step 17: Add Events for Running and Stopping 
Add Events 
• Object: PlayerBox 
• Condition: (Platform) On moved 
• Action: 
• Object: Player 
• Event: Set animation to “Run” 
Add Events 
• Object: PlayerBox 
• Condition: (Platform) On stopped 
• Action: 
• Object: Player 
• Event: Set animation to “Idle”
Step 18: Add Event for Jumping and Landing 
Add Event 
• Object: PlayerBox 
• Condition: (Platform) On jump 
• Action: 
• Object: Player 
• Event: Set animation to “Jump” 
Add Event with sub-events 
• Object: PlayerBox 
• Condition: (Platform) On landed 
• Sub-events: (see details below)
Step 19: Add New Sprite -> Enemy 
Tips: 
• Rename sprite object to “Enemy” 
• Set origin to bottom center point
Step 20: Place enemies on blocks 
Tip: Ctrl-Click and Drag to copy enemy
Step 21: Add Behaviors to Player object 
Add the following behaviors: 
• Flash
Step 22: Add New Event for Collision 
Add Event 
• Object: PlayerBox 
• Condition: On collision with another object  Enemy 
• Action:
Step 23: Add New Event for Collision 
Add Sub-Event: 
• Object: PlayerBox 
• Condition: (Platform) is falling 
Add another condition: 
• Object: PlayerBox 
• Condition: (Compare Y) < Enemy.Y 
Add Actions: 
• Object: Enemy 
• Event: Destroy 
• Object: PlayerBox 
• Event: Set (Platform) vector Y 
• Value: -700
Step 24: Add Else for Collision 
Add Else condition: 
• Object: System 
• Condition: Else 
• Action: 
• Object: Player 
• Action: Flash 0.1 on 0.1 off after 1.0 seconds
Step 25: Add Behaviors to Enemy 
Add the following behaviors: 
• Platform
Step 26: Update Enemy Platform Behavior 
Update the following: 
• Max Speed: 50 
• Acceleration: 100 
• Deceleration: 100 
• Default Controls: No
Step 27: Add New Sprite -> Edge 
Tips: 
• Rename sprite object to “Edge”
Step 28: Place along edges using Ctrl + Drag 
Tip: Make the Edge object Invisible
Step 29: Add New instance variable to Enemy 
Instance Variable: 
• Name: action 
• Type: Text 
• Initial value: left 
• Description (optional)
Step 30: Create Event for “right” movement 
Add Event: 
• Object: Enemy 
• Condition: (compare instance variable), action = “right” 
• Action: 
• Object: Enemy 
• Action: Simulate (platform) pressing Right 
• Object: Enemy 
• Action: Set Mirrored
Step 31: Create Event for “left” movement 
Add Event: 
• Object: Enemy 
• Condition: (compare instance variable), action = “left” 
• Action: 
• Object: Enemy 
• Action: Simulate (platform) pressing Left 
• Object: Enemy 
• Action: Set Not mirrored
Step 32: Create Event for Edge collision 
Add Event: 
• Object: Enemy 
• Condition: On collision with Edge 
• Action:
Step 33: Create Sub-Event with Actions 
Add Sub-Event: 
• Object: Enemy 
• Condition: (compare instance variable), action = “right” 
• Action: 
• Object: Enemy 
• Action: (Set value) action to “left”
Step 34: Create Else Condition 
Add Else Condition: 
• Object: System 
• Condition: Else 
• Action: 
• Object: Enemy 
• Action: (Set value) action to “right”
Step 35: Add New Sprite -> Platform 
Tips: 
• Rename sprite object to “Platform” 
• Place it higher than a Tile. 
• Ctrl-Click and Drag to create more.
Step 36: Add Behavior to Platform 
Add the following behaviors: 
• Jump-thru
Step 37: Add New Event for Player falling out 
New Event 
• Object: Player 
• Condition: Is outside layout 
• Action: 
• Object: System 
• Action: Restart layout
Step 38: Add Moving Platforms 
Add Behavior 
• Sine
Step 39: Customize Graphics 
Download Free Graphics 
• Free Bundle from Scirra: 
• http://www.scirra.com/freebundle.zip 
• Top-down shooter + zombies: 
• http://gfxpax.blogspot.com/2011/07/top-down-shooter-zombie-pack.html 
• Tiled Backgrounds, etc: 
• http://sandbox.yoyogames.com/make/resources
Step 40: Export to HTML5 Website 
Export Project
Play Your Game!!!
(END of Platformer tutorial) 
• Derived from ‘How to make a Platform game’ originally published by 
Ashley 
• Updated with different graphics and simplified animations

Mais conteĂşdo relacionado

Mais procurados

ECS (Part 1/3) - Introduction to Data-Oriented Design
ECS (Part 1/3) - Introduction to Data-Oriented DesignECS (Part 1/3) - Introduction to Data-Oriented Design
ECS (Part 1/3) - Introduction to Data-Oriented DesignPhuong Hoang Vu
 
Elements of Game Design
Elements of Game DesignElements of Game Design
Elements of Game Designmyati
 
Game Programming 02 - Component-Based Entity Systems
Game Programming 02 - Component-Based Entity SystemsGame Programming 02 - Component-Based Entity Systems
Game Programming 02 - Component-Based Entity SystemsNick Pruehs
 
1-Introduction (Game Design and Development)
1-Introduction (Game Design and Development)1-Introduction (Game Design and Development)
1-Introduction (Game Design and Development)Hafiz Ammar Siddiqui
 
The Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, PepperThe Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, PepperDroidConTLV
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unitydavidluzgouveia
 
Game Design Fundamentals
Game Design FundamentalsGame Design Fundamentals
Game Design FundamentalsIntelligent_ly
 
The Production and Visual FX of Killzone Shadow Fall
The Production and Visual FX of Killzone Shadow FallThe Production and Visual FX of Killzone Shadow Fall
The Production and Visual FX of Killzone Shadow FallGuerrilla
 
Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)joysuliman
 
Video Game Design: Art & Sound
Video Game Design: Art & SoundVideo Game Design: Art & Sound
Video Game Design: Art & SoundKevin Duggan
 
Level design for games
Level design for gamesLevel design for games
Level design for gamesJayyes
 
Games Interfaces
Games InterfacesGames Interfaces
Games InterfacesCraig Carey
 
전리품 분배 시스템 기획 배상욱
전리품 분배 시스템 기획 배상욱전리품 분배 시스템 기획 배상욱
전리품 분배 시스템 기획 배상욱SwooBae
 
LAFS Game Design 1 - Structural Elements
LAFS Game Design 1 - Structural ElementsLAFS Game Design 1 - Structural Elements
LAFS Game Design 1 - Structural ElementsDavid Mullich
 
Unreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User InterfaceUnreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User InterfaceNick Pruehs
 
ใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potNattapon
 
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo Yue
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo YueUGC In Game : A Brief History and How We Bring It To Mobile | Zhuo Yue
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo YueJessica Tams
 

Mais procurados (20)

Android UI
Android UIAndroid UI
Android UI
 
ECS (Part 1/3) - Introduction to Data-Oriented Design
ECS (Part 1/3) - Introduction to Data-Oriented DesignECS (Part 1/3) - Introduction to Data-Oriented Design
ECS (Part 1/3) - Introduction to Data-Oriented Design
 
Elements of Game Design
Elements of Game DesignElements of Game Design
Elements of Game Design
 
Game Programming 02 - Component-Based Entity Systems
Game Programming 02 - Component-Based Entity SystemsGame Programming 02 - Component-Based Entity Systems
Game Programming 02 - Component-Based Entity Systems
 
1-Introduction (Game Design and Development)
1-Introduction (Game Design and Development)1-Introduction (Game Design and Development)
1-Introduction (Game Design and Development)
 
The Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, PepperThe Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, Pepper
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unity
 
Game Design Fundamentals
Game Design FundamentalsGame Design Fundamentals
Game Design Fundamentals
 
The Production and Visual FX of Killzone Shadow Fall
The Production and Visual FX of Killzone Shadow FallThe Production and Visual FX of Killzone Shadow Fall
The Production and Visual FX of Killzone Shadow Fall
 
Game using Java
Game using JavaGame using Java
Game using Java
 
Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)
 
Video Game Design: Art & Sound
Video Game Design: Art & SoundVideo Game Design: Art & Sound
Video Game Design: Art & Sound
 
Level design for games
Level design for gamesLevel design for games
Level design for games
 
Games Interfaces
Games InterfacesGames Interfaces
Games Interfaces
 
전리품 분배 시스템 기획 배상욱
전리품 분배 시스템 기획 배상욱전리품 분배 시스템 기획 배상욱
전리품 분배 시스템 기획 배상욱
 
LAFS Game Design 1 - Structural Elements
LAFS Game Design 1 - Structural ElementsLAFS Game Design 1 - Structural Elements
LAFS Game Design 1 - Structural Elements
 
Unreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User InterfaceUnreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User Interface
 
ใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint pot
 
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo Yue
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo YueUGC In Game : A Brief History and How We Bring It To Mobile | Zhuo Yue
UGC In Game : A Brief History and How We Bring It To Mobile | Zhuo Yue
 
Android Intent.pptx
Android Intent.pptxAndroid Intent.pptx
Android Intent.pptx
 

Semelhante a Construct 2 Platformer: Step by Step

Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Wahyu Purnomo
 
ARTDM 170, Week 7: Scripting Interactivity
ARTDM 170, Week 7: Scripting InteractivityARTDM 170, Week 7: Scripting Interactivity
ARTDM 170, Week 7: Scripting InteractivityGilbert Guerrero
 
Game Salad Study
Game Salad StudyGame Salad Study
Game Salad StudyYoung-Min kang
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with UnityMark Billinghurst
 
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
 
C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1Mohammad Shaker
 
Lecture2_practice.pdf
Lecture2_practice.pdfLecture2_practice.pdf
Lecture2_practice.pdfHusseinAlmulla1
 
HoloLens Programming Tutorial: AirTap & Spatial Mapping
HoloLens Programming Tutorial: AirTap & Spatial MappingHoloLens Programming Tutorial: AirTap & Spatial Mapping
HoloLens Programming Tutorial: AirTap & Spatial MappingTakashi Yoshinaga
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step Ming-Hung Hseih
 
2006 - Basta!: Advanced server controls
2006 - Basta!: Advanced server controls2006 - Basta!: Advanced server controls
2006 - Basta!: Advanced server controlsDaniel Fisher
 
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
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMark Billinghurst
 
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...Rebekka Aalbers-de Jong
 
Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Shahed Chowdhuri
 
The Fine Art of JavaScript Event Handling
The Fine Art of JavaScript Event HandlingThe Fine Art of JavaScript Event Handling
The Fine Art of JavaScript Event HandlingYorick Phoenix
 
OnlineLearning Makers Fair - Stencyl
OnlineLearning Makers Fair - StencylOnlineLearning Makers Fair - Stencyl
OnlineLearning Makers Fair - StencylHelmut Doll
 
C++ Windows Forms L10 - Instantiate
C++ Windows Forms L10 - InstantiateC++ Windows Forms L10 - Instantiate
C++ Windows Forms L10 - InstantiateMohammad Shaker
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesMark Billinghurst
 

Semelhante a Construct 2 Platformer: Step by Step (20)

Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2
 
ARTDM 170, Week 7: Scripting Interactivity
ARTDM 170, Week 7: Scripting InteractivityARTDM 170, Week 7: Scripting Interactivity
ARTDM 170, Week 7: Scripting Interactivity
 
Game Salad Study
Game Salad StudyGame Salad Study
Game Salad Study
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with Unity
 
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
 
C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1
 
Lecture2_practice.pdf
Lecture2_practice.pdfLecture2_practice.pdf
Lecture2_practice.pdf
 
HoloLens Programming Tutorial: AirTap & Spatial Mapping
HoloLens Programming Tutorial: AirTap & Spatial MappingHoloLens Programming Tutorial: AirTap & Spatial Mapping
HoloLens Programming Tutorial: AirTap & Spatial Mapping
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
2006 - Basta!: Advanced server controls
2006 - Basta!: Advanced server controls2006 - Basta!: Advanced server controls
2006 - Basta!: Advanced server controls
 
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
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3D
 
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
Having fun power apps components HandsOn - Power Platform World Tour Copenhag...
 
Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6
 
The Fine Art of JavaScript Event Handling
The Fine Art of JavaScript Event HandlingThe Fine Art of JavaScript Event Handling
The Fine Art of JavaScript Event Handling
 
OnlineLearning Makers Fair - Stencyl
OnlineLearning Makers Fair - StencylOnlineLearning Makers Fair - Stencyl
OnlineLearning Makers Fair - Stencyl
 
Introduction to Unity
Introduction to UnityIntroduction to Unity
Introduction to Unity
 
C++ Windows Forms L10 - Instantiate
C++ Windows Forms L10 - InstantiateC++ Windows Forms L10 - Instantiate
C++ Windows Forms L10 - Instantiate
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR Experiences
 
eAdventureEN
eAdventureENeAdventureEN
eAdventureEN
 

Mais de Shahed Chowdhuri

ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsShahed Chowdhuri
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsShahed Chowdhuri
 
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesShahed Chowdhuri
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsShahed Chowdhuri
 
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesShahed Chowdhuri
 
Microsoft Cognitive Services
Microsoft Cognitive ServicesMicrosoft Cognitive Services
Microsoft Cognitive ServicesShahed Chowdhuri
 
Intro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DBIntro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DBShahed Chowdhuri
 
Game On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UYGame On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UYShahed Chowdhuri
 
Game On with Windows & Xbox One!
Game On with Windows & Xbox One!Game On with Windows & Xbox One!
Game On with Windows & Xbox One!Shahed Chowdhuri
 
Going Serverless with Azure Functions
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure FunctionsShahed Chowdhuri
 
ASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsShahed Chowdhuri
 
Azure for Hackathons
Azure for HackathonsAzure for Hackathons
Azure for HackathonsShahed Chowdhuri
 
Intro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application DevelopmentIntro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application DevelopmentShahed Chowdhuri
 
What's New at Microsoft?
What's New at Microsoft?What's New at Microsoft?
What's New at Microsoft?Shahed Chowdhuri
 
Capture the Cloud with Azure
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with AzureShahed Chowdhuri
 
Intro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed RealityIntro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed RealityShahed Chowdhuri
 
Intro to Bot Framework v3
Intro to Bot Framework v3Intro to Bot Framework v3
Intro to Bot Framework v3Shahed Chowdhuri
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewShahed Chowdhuri
 

Mais de Shahed Chowdhuri (20)

ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
 
Microsoft Cognitive Services
Microsoft Cognitive ServicesMicrosoft Cognitive Services
Microsoft Cognitive Services
 
Intro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DBIntro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DB
 
Game On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UYGame On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UY
 
Game On with Windows & Xbox One!
Game On with Windows & Xbox One!Game On with Windows & Xbox One!
Game On with Windows & Xbox One!
 
Going Serverless with Azure Functions
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure Functions
 
ASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web Apps
 
Azure for Hackathons
Azure for HackathonsAzure for Hackathons
Azure for Hackathons
 
Intro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application DevelopmentIntro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application Development
 
Xbox One Dev Mode
Xbox One Dev ModeXbox One Dev Mode
Xbox One Dev Mode
 
What's New at Microsoft?
What's New at Microsoft?What's New at Microsoft?
What's New at Microsoft?
 
Capture the Cloud with Azure
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with Azure
 
Intro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed RealityIntro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed Reality
 
Intro to Bot Framework v3
Intro to Bot Framework v3Intro to Bot Framework v3
Intro to Bot Framework v3
 
Azure: PaaS or IaaS
Azure: PaaS or IaaSAzure: PaaS or IaaS
Azure: PaaS or IaaS
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
 

Último

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Último (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

Construct 2 Platformer: Step by Step

  • 1. Windows 8  Windows Phone 8  Web  Mobile  … and more! WakeUpAndCode.com @shahedC
  • 2. Prerequisites • Ghost Shooter Tutorial • Flapping Bird Tutorial Both available at: Construct 2 – Step by Step • http://wakeupandcode.com/construct-2-step-by-step/
  • 3. Step 1: Save a New Project, “platformer.capx” Save! Enter File name
  • 4. Step 2: Change Layout size Layout Size • Width = 4000 • Height = 2048
  • 5. Step 3: Prepare Your Layers Bottom layer • Rename it “Background” • Remember to Lock it later! New layer • Add new layer • Rename it “Main”
  • 6. Step 4: Add Background, update properties Update: • Name • Position • Size
  • 7. Step 5: Add New Sprite -> Tile Tips: • Rename sprite object to “Tile” • Check “Snap to Grid”. • Ctrl-Click and Drag to create more.
  • 8. Step 6: Add New Sprite -> Player Tips: • Rename sprite object to “Player” • Rename Default animation to “Idle” • Set origin to bottom center point
  • 9. Step 7: Add New Sprite -> PlayerBox Tips: • Rename sprite object to “PlayerBox” • Set origin to bottom center point
  • 10. Step 8: Cover Player with PlayerBox Tips: • Resize PlayerBox to match Player • Position PlayerBox over Player
  • 11. Step 9: Add Behaviors to PlayerBox Add the following behaviors: • Platform • ScrollTo
  • 12. Step 10: Update PlayerBox Properties Update the following for Platform: • Jump Strength = 750 • Gravity = 2500 Also update: • Initial visibility = Invisible
  • 13. Step 11: Add Behaviors to Tile object Add the following behaviors: • Solid
  • 14. Step 12: Add Event for Player to follow Box Add Event • Object: System • Condition: Every tick • Action: • Object: Player • Event: Set position to PlayerBox (image point 0)
  • 15. Step 13: Add Keyboard Support Tips: • Insert New Object  Keyboard • Add 2 events for Left/Right
  • 16. Step 14: Update Project Window Size Tip: Set Window Size: 800, 600
  • 17. Step 15: Create More Tiles Tip: Ctrl-Click and Drag to create more tiles
  • 18. Step 16: Add Run and Jump Animations Tips: • Right-Click Animations window to Add each animation • Import Sprite Strip as 4x4 for each • Remove empty frames • Clean up any stray pixels • Rename to “Run” and “Jump”, respectively • Set origin to bottom center point for all frames
  • 19. Step 17: Add Events for Running and Stopping Add Events • Object: PlayerBox • Condition: (Platform) On moved • Action: • Object: Player • Event: Set animation to “Run” Add Events • Object: PlayerBox • Condition: (Platform) On stopped • Action: • Object: Player • Event: Set animation to “Idle”
  • 20. Step 18: Add Event for Jumping and Landing Add Event • Object: PlayerBox • Condition: (Platform) On jump • Action: • Object: Player • Event: Set animation to “Jump” Add Event with sub-events • Object: PlayerBox • Condition: (Platform) On landed • Sub-events: (see details below)
  • 21. Step 19: Add New Sprite -> Enemy Tips: • Rename sprite object to “Enemy” • Set origin to bottom center point
  • 22. Step 20: Place enemies on blocks Tip: Ctrl-Click and Drag to copy enemy
  • 23. Step 21: Add Behaviors to Player object Add the following behaviors: • Flash
  • 24. Step 22: Add New Event for Collision Add Event • Object: PlayerBox • Condition: On collision with another object  Enemy • Action:
  • 25. Step 23: Add New Event for Collision Add Sub-Event: • Object: PlayerBox • Condition: (Platform) is falling Add another condition: • Object: PlayerBox • Condition: (Compare Y) < Enemy.Y Add Actions: • Object: Enemy • Event: Destroy • Object: PlayerBox • Event: Set (Platform) vector Y • Value: -700
  • 26. Step 24: Add Else for Collision Add Else condition: • Object: System • Condition: Else • Action: • Object: Player • Action: Flash 0.1 on 0.1 off after 1.0 seconds
  • 27. Step 25: Add Behaviors to Enemy Add the following behaviors: • Platform
  • 28. Step 26: Update Enemy Platform Behavior Update the following: • Max Speed: 50 • Acceleration: 100 • Deceleration: 100 • Default Controls: No
  • 29. Step 27: Add New Sprite -> Edge Tips: • Rename sprite object to “Edge”
  • 30. Step 28: Place along edges using Ctrl + Drag Tip: Make the Edge object Invisible
  • 31. Step 29: Add New instance variable to Enemy Instance Variable: • Name: action • Type: Text • Initial value: left • Description (optional)
  • 32. Step 30: Create Event for “right” movement Add Event: • Object: Enemy • Condition: (compare instance variable), action = “right” • Action: • Object: Enemy • Action: Simulate (platform) pressing Right • Object: Enemy • Action: Set Mirrored
  • 33. Step 31: Create Event for “left” movement Add Event: • Object: Enemy • Condition: (compare instance variable), action = “left” • Action: • Object: Enemy • Action: Simulate (platform) pressing Left • Object: Enemy • Action: Set Not mirrored
  • 34. Step 32: Create Event for Edge collision Add Event: • Object: Enemy • Condition: On collision with Edge • Action:
  • 35. Step 33: Create Sub-Event with Actions Add Sub-Event: • Object: Enemy • Condition: (compare instance variable), action = “right” • Action: • Object: Enemy • Action: (Set value) action to “left”
  • 36. Step 34: Create Else Condition Add Else Condition: • Object: System • Condition: Else • Action: • Object: Enemy • Action: (Set value) action to “right”
  • 37. Step 35: Add New Sprite -> Platform Tips: • Rename sprite object to “Platform” • Place it higher than a Tile. • Ctrl-Click and Drag to create more.
  • 38. Step 36: Add Behavior to Platform Add the following behaviors: • Jump-thru
  • 39. Step 37: Add New Event for Player falling out New Event • Object: Player • Condition: Is outside layout • Action: • Object: System • Action: Restart layout
  • 40. Step 38: Add Moving Platforms Add Behavior • Sine
  • 41. Step 39: Customize Graphics Download Free Graphics • Free Bundle from Scirra: • http://www.scirra.com/freebundle.zip • Top-down shooter + zombies: • http://gfxpax.blogspot.com/2011/07/top-down-shooter-zombie-pack.html • Tiled Backgrounds, etc: • http://sandbox.yoyogames.com/make/resources
  • 42. Step 40: Export to HTML5 Website Export Project
  • 44. (END of Platformer tutorial) • Derived from ‘How to make a Platform game’ originally published by Ashley • Updated with different graphics and simplified animations

Notas do Editor

  1. Title Page: Intro to Indie Game Development Windows  Web  Xbox  Mobile By Shahed Chowdhuri Technical Evangelist Blog: WakeUpAndCode.com Twitter: @shahedC