Assuming that if the first condition is true you want to perform the other actions...
- Code: Select all
if (tincollision==1)
{
useage=1;
ChangeAnimation("Event Actor", "minedore", FORWARD);
tinoreno.textNumber=tinoreno.textNumber+1;
}
It's worth buying a book on the basics or programming, your problem above is mainly syntax of which the basics are fairly similar in most programming languages. The nasty thing is, as with any language if you miss so much as a ; or type something slightly wrong it just wont work, that's just the way computers are
Also, If you want to count something use a variable not an actor, it's more flexable and allows you to use that variable more widely; so the code:
- Code: Select all
tinoreno.textNumber=tinoreno.textNumber+1;
may be written in a basic and easily understandable way as:
- Code: Select all
count+1;
tinoreno.textNumber = count;
so the final code might be:
- Code: Select all
if (tincollision==1)
{
useage=1;
ChangeAnimation("Event Actor", "minedore", FORWARD);
countcoll+1;
tinoreno.textNumber = countcoll;
}
You'd have to create a new variable called
countcoll for the above to work.