I am creating a zombie killing game and I want to add a system that gives a point for each kill. I don't know how to do this. Please could you help me? I also want it to reset after death.
Create game.points (real) set to 0 Click the "bullet" actor and set the following things:
Rule If collides or overlaps with "zombieactor" Change Attribute set: game.points to: game.points+1 Destroy actor
Click the zombie actor
Rule If collides or overlaps with zombie Destroy actor
Create an actor named "PointDisplay"
Who will display the points Locate it somewhere in the camera (scene) and move it to non-scrollable layer ------ You should have implement those formulas into actors(prototype) not (instance).
I am not infront of a computer so I might additional info later this day.
Comments
Click the "bullet" actor and set the following things:
Rule
If collides or overlaps with "zombieactor"
Change Attribute
set: game.points to: game.points+1
Destroy actor
Click the zombie actor
Rule
If collides or overlaps with zombie
Destroy actor
Create an actor named "PointDisplay"
Who will display the points
Locate it somewhere in the camera (scene) and move it to non-scrollable layer
------
You should have implement those formulas into actors(prototype) not (instance).
I am not infront of a computer so I might additional info later this day.