SlideShare a Scribd company logo
Lesson 4 Part 1
THE LAST EVENT WE ADDED COULD HAVE
BEEN WRITTEN:


Add condition System -> Every tick
Add action Player -> Set angle
 towards position -> X: Mouse.X, Y:
 Mouse.Y




                Objective: To be able to understand written
                events and be able to implement them into
                Construct 2.
WE WILL NOW BE ADDING MORE EVENTS
Your teacher will show you a video on how
  the events are made and then give you
     time to add the events one-by-one.

      Remember if you get stuck :
         Ask Three – Then Me.
 As people finish they will be asked to be
   “experts” and help around the room.


                  Objective: To be able to understand written
                  events and be able to implement them into
                  Construct 2.
EVENT ONE
Condition: Mouse -> On click -> Left clicked (the
  default)
Action: Player -> Spawn another object -> For Object,
  choose the Bullet object. For Layer, put 1 (the
  "Main" layer is layer 1 - remember Construct 2
  counts from zero). Leave Image point as 0.




                       Objective: To be able to understand written
                       events and be able to implement them into
                       Construct 2.
EVENT TWO
Condition: Bullet -> On collision with another object -> pick
  Monster.
Action: Monster -> Destroy
Action: Bullet -> Spawn another object -> Explosion, layer 1
Action: Bullet -> Destroy




                             Objective: To be able to understand written
                             events and be able to implement them into
                             Construct 2.
EVENT THREE

Condition: System -> On start of Layout
Action: Monster -> Set angle -> random(360)




                   Objective: To be able to understand written
                   events and be able to implement them into
                   Construct 2.
EVENT FOUR : NO VIDEO HELP/CLUES
See if you can add this one yourself!



Condition: Monster -> Is outside layout
Action: Monster -> Set angle toward position -> For
  X, Player.X - for Y, Player.Y.




                       Objective: To be able to understand written
                       events and be able to implement them into
                       Construct 2.
ONE LAST THING!!
Click the Explosion object !


Its properties appear in the properties bar on the left.


At the bottom, set its Effect property to Additive.


This will remove the black edging!

          SAVE AND TEST YOUR GAME!!

                         Objective: To be able to understand written
                         events and be able to implement them into
                         Construct 2.

More Related Content

PPTX
Introduction to cocos2d-x
PPTX
Unity - Building your first real-time 3D project
PPS
Catsanddogs
PPTX
4.3 collision detection
PPTX
4.2 responding to events
PPTX
Ninja Cat Flyer - 1 of 6
PPTX
4.4 advanced games
KEY
ARTDM 170, Week 7: Scripting Interactivity
Introduction to cocos2d-x
Unity - Building your first real-time 3D project
Catsanddogs
4.3 collision detection
4.2 responding to events
Ninja Cat Flyer - 1 of 6
4.4 advanced games
ARTDM 170, Week 7: Scripting Interactivity

Viewers also liked (13)

PPTX
Programming Challenge
PPTX
Programming Adding Interupts
PPTX
Programming Hello World
PPTX
Add behaviours lesson2
PPTX
Programming Variables
PPTX
Photoshop Lesson 7
PPTX
Photoshop lesson 2
PPTX
Photoshop Lesson 4
PPTX
Photoshop Lesson 6
PPTX
Photoshop Lesson 5
PPTX
Photoshop Lesson 3
PPT
Part 5 – animating your character
PPTX
Photoshop lesson 1
Programming Challenge
Programming Adding Interupts
Programming Hello World
Add behaviours lesson2
Programming Variables
Photoshop Lesson 7
Photoshop lesson 2
Photoshop Lesson 4
Photoshop Lesson 6
Photoshop Lesson 5
Photoshop Lesson 3
Part 5 – animating your character
Photoshop lesson 1
Ad

Lesson 4 Part 1

  • 2. THE LAST EVENT WE ADDED COULD HAVE BEEN WRITTEN: Add condition System -> Every tick Add action Player -> Set angle towards position -> X: Mouse.X, Y: Mouse.Y Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 3. WE WILL NOW BE ADDING MORE EVENTS Your teacher will show you a video on how the events are made and then give you time to add the events one-by-one. Remember if you get stuck : Ask Three – Then Me. As people finish they will be asked to be “experts” and help around the room. Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 4. EVENT ONE Condition: Mouse -> On click -> Left clicked (the default) Action: Player -> Spawn another object -> For Object, choose the Bullet object. For Layer, put 1 (the "Main" layer is layer 1 - remember Construct 2 counts from zero). Leave Image point as 0. Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 5. EVENT TWO Condition: Bullet -> On collision with another object -> pick Monster. Action: Monster -> Destroy Action: Bullet -> Spawn another object -> Explosion, layer 1 Action: Bullet -> Destroy Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 6. EVENT THREE Condition: System -> On start of Layout Action: Monster -> Set angle -> random(360) Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 7. EVENT FOUR : NO VIDEO HELP/CLUES See if you can add this one yourself! Condition: Monster -> Is outside layout Action: Monster -> Set angle toward position -> For X, Player.X - for Y, Player.Y. Objective: To be able to understand written events and be able to implement them into Construct 2.
  • 8. ONE LAST THING!! Click the Explosion object ! Its properties appear in the properties bar on the left. At the bottom, set its Effect property to Additive. This will remove the black edging! SAVE AND TEST YOUR GAME!! Objective: To be able to understand written events and be able to implement them into Construct 2.