if (score>=1000)//more than 1000 pts
{
CreateTimer("TEXTACTOR", "txtCongraturalation", 12); //Make your custom timer for 12 ms for the text actor
}
if (score<=999)
{
CreateTimer("TEXTACTOR", "txtGameover", 12);
}
if (score>=1000)//more than 1000 pts
{
ChangeAnimation(" ", " ", FORWARD);
}
if (score<=999)
{
ChangeAnimation(" ", " ", FORWARD);
}
time-=time>0; // this reduces time if it is greater than zero
if(time<=0)
{
if(score>=1000)
{
CreateActor("congrats", "congrats_anim", "(none)", "(none)", view.x+view.width/2, view.y+view.height/2, true);
}
else
{
CreateActor("game_over", "game_over_anim", "(none)", "(none)", view.x+view.width/2, view.y+view.height/2, true);
}
}
// code goes here
if(score>=1000)
{
CreateActor("congrats", "congrats_anim", "(none)", "(none)", view.x+view.width/2, view.y+view.height/2, true);
}
else
{
CreateActor("game_over", "game_over_anim", "(none)", "(none)", view.x+view.width/2, view.y+view.height/2, true);
}
Users browsing this forum: No registered users and 1 guest