1. Player>CollisionEvent>Enemy or Spikes
- Code: Select all
coin-=10; //in this code, coin mean a variable
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
CreateActor("CoinActor","CoinSprites",("none"),("none"),0,0,false);
2. Player>CollisionEvent>Enemy or Spikes
- Code: Select all
ChangeAnimation("EventActor","PlayerHit",FORWARD);
3. Player>CollisionEvent>Enemy or Spikes
- Code: Select all
transp=0.5;
CreateTimer("Recover", 7000 ms);
Timer>Recover>
- Code: Select all
transp=0;
CanAttack=1;
4. Player>CollisionEvent>Enemy or Spikes
- Code: Select all
power--;
5. Player>CollisionEvent>Enemy or Spikes
- Code: Select all
CanAttack=0;
CreateTimer("Recover", 7000 ms);
Player>KeyDown>Attack Key
- Code: Select all
if(CanAttack==1)
{
//attack events
}
I think it's more than enough...