CRE8OR - game maker for anim8or

 


VARIABLES AND DISPLAY
- CHARACTERIZATION -


   We'll start out wit a project similar to last time. Download this: Lizard Alien 3 . We want our characters to have health.

NOTE: EVERYTHING IS CASE SENSITIVE

NOTE: Models are used in the tutorial for the purpose of teaching, these models are not allowed to be used elsewhere without consent.

Now add the member variable:

All member variables must be delcared in the Entity: Variables event.

Now DO THE EXACT SAME THING for the Enemy_Lizard entity, because I don't want to show it all over again.

Now go to "Scene01" and add the "Create" event.



Now add another label:

 

Now it's time to displat this stuff.

Go to AlienLizard, and add "Set Label Text"

The new text should be
"Health: "+health.tostring()
Including the quotes

The new text should be:
"Enemy Health: "+health.tostring()

If you run it it will display the health in the upper left corner.

Now let's make the main character lose health when he's hit, go to "Enemy_Punch" sequence:

The name is:
Alien_Lizard.instance_of().health
This will set the main character's health backwards.

Now go to "Punch" sequnece:

And add these brackets so they close the statement.


Now add this action: "Set Var Rel"

 

MAKE SURE YOU MOVE IT UP:

 

Now let's kill the characters.

Go to the "Alien_Lizard" entity and add this to the step event:



IF the health is < than 0 then we should restart the game:

 

Now go the "Enemy Lizard" entity

IF that is true than destroy it.

That's if for now!


Tutorials Page




Copyrights (C) 2007 Keith Tabert
Thanks to R. Steven Glanville for Anim8or, Robin