for example:
- Code: Select all
on ChangeVariable(health, decrease, any amount)>play a sound
on ChangeVariable(health, decrease, any amount)>play a sound
if ( [your variable] == [The number or phrase that you want wwhen the action will be activated])
{
[the action taken]
}
Game a Gogo wrote:
- Code: Select all
if ( [your variable] == [The number or phrase that you want wwhen the action will be activated])
{
[the action taken]
}
if (health > 100)
{
health=100;//the health should not get greater than 100
}
if (health<0)
{
MoveTo("Nindill", savx, savy, 5000.000000, "Game Center");
health=100;// have an action when health is less than 0
}
if (health<textNumber)
{
//have an action when you get hurt.(no acton yet)
}
textNumber=health;
Users browsing this forum: No registered users and 1 guest