BogdansB wrote:now I want to make the score just add the -y and not the +y. how to do it?
This code will give you more points, the lower you go.
- Code: Select all
score = player.y/10;
BogdansB wrote:and how to stop the score adding the y of the player after the player destroys?
Use ActorCount. It's a function that returns how many of a certain actor there are.
- Code: Select all
if(ActorCount("player")==1)
{
score = player.y/10;
}