際際滷

際際滷Share 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

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.