Hi everyone!
I'm making my first game with a friend and we've run into a problem:
When a certain hotspot is clicked we want the character to move to point A and when he reached it, continue to point B.
But we want to be able to move the character to another place if he hasn't reached point A.
example:
MoveCharacter(GetPlayerCharacter(), x1, y1);
// Here we want the script to wait but not the entire game.
MoveCharacterBlocking(GetPlayerCharacter(), x2, y2,1);
Hopefully this makes sense and someone out there knows what to do.
If you do please help us!
I'm making my first game with a friend and we've run into a problem:
When a certain hotspot is clicked we want the character to move to point A and when he reached it, continue to point B.
But we want to be able to move the character to another place if he hasn't reached point A.
example:
MoveCharacter(GetPlayerCharacter(), x1, y1);
// Here we want the script to wait but not the entire game.
MoveCharacterBlocking(GetPlayerCharacter(), x2, y2,1);
Hopefully this makes sense and someone out there knows what to do.
If you do please help us!