I'm currently creating a game that its movements is based on object location, and so i have set up an area with several objects all labeled with name# example: ground23, i want to make an equation that sets the players position to object by its number such as going up means moving from ground23 to ground13. i have the current object number set as a instance variable within the player such as when on ground23 the value is 23, and when u go up the value goes to 13. the problem is the equation i have set up looks like this "on action, set player coordinates to X: ground(instance value).X Y: ground(instance value).Y but it wont accept it it as a acceptably equation. Does anyone know how how i can write out this equation so it would except it?