Hello,

I know this question might sound stupid to most of you guys but it is very necessary for me to know the answer.

How can you get x and y coordinates of an instance? My instance is called "rock". This is what I have tried:

PHP Code:
onClipEvent(enterFrame){
    
trace(rock.x);
    
trace(rock.y);
    } 
but it does not work.

Next, how can I make this instance go up by a certain angle?

Thank you very much.