Download presentation
Presentation is loading. Please wait.
Published byKody Chaplin Modified over 9 years ago
2
Go to your Event Sheet
3
Click to Add Event
4
Select “Monster” then Next!
5
Select “Compare instance variable” then Next!
6
Done! Enter: Comparison: ≤ Less or equal Value = 0
7
Click to Add Action
8
Select “Monster” then Next!
9
Select “Spawn another object” then Next!
11
Select “Explosion” then OK!
12
Done! Enter: Layer = 1 Image point = 0
13
Click to Add Action
14
Select “Monster” then Next!
15
Select “Destroy” then Done!
18
Right-click, then click Add global variable
19
Enter: Name: Score Type: Number Initial value: 0 Description (optional) Constant? OK!
20
Scroll to the top to see it!
21
Click Add action Scroll back to the bottom
22
Select “System” then Next!
23
Select “Add to” then Next!
24
Enter: Value = 1 Done!
27
Click Layers
28
Add a new layer (plus sign)
29
Right-click then click Rename
30
Change the name to “HUD”
31
Let’s update the Parallax values…
32
When the background layers scroll separately Source: Super Mario Bros, from Nintendo http://wakeupandcode.com/c2/parallax.html
33
Set the HUD’s Parallax to 0, 0
36
then Insert new object Right-click top left of Layout 1
37
Select “Text” then Click Insert
38
Click to place Text object (HUD layer)
39
Notice Text object
40
Change Properties Font Style: Bold Italic Size: 24 Color: Yellow
43
"Score: " & Score StringVariable & (ampersand) space quote text
44
Score: 100 "Score: " & Score displays
45
Click Add action For System, Every tick
46
Select “Text” then Next!
47
Select “text” then Next!
48
Enter: “Score: “ & Score Done!
51
Click to Add Event
52
Select “System” then Next!
53
Select “Every X seconds” then Next!
54
Done! Enter: Interval (seconds): 3
55
Click to Add Action
56
Select “System” then Next!
57
Select “Create object” then Next!
59
Select “Monster” then OK!
60
Done! Enter: Layer = 1 X = 1400 Y = random(1024)
63
Click to Add Event
64
Select “Monster” then Next!
65
Select “On collision with another object” then Next!
67
Select “Player” then OK!
68
Done!
69
Click to Add Action
70
Select “Player” then Next!
71
Select “Destroy” then Done!
74
Online: http://www.scirra.com/tutorialshttp://www.scirra.com/tutorials
75
FB: https://www.facebook.com/groups/construct2devs/https://www.facebook.com/groups/construct2devs/ Forum: https://www.scirra.com/forum/https://www.scirra.com/forum/
76
Email: shchowd@microsoft.com Twitter: @shahedCshchowd@microsoft.com@shahedC
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.