How to make an actor retractable ?
GSlostsoul
Member Posts: 22
Hi, how do U make an actor retract when touched & extract when touched again?
It's something like a door sliding left to open when touched & sliding right to close when touched again.
Comments
Rule 1
When actor is touched AND self position = the right most position
Then interpolate to the left most position.
Rule 2
When actor is touched AND self position = the left most position
Then interpolate to the right most position.
Example: https://www.mediafire.com/?9m2976vv8y2bq6d
Thank U so much. I figured it out with your help. Btw I'm using display text to get the X/Y coordinates of the actor which can only be obtained during preview. Is there any other way to see the coordinates while we place the actor in the scene.? Is it possible to make 1st actor retract inwards when touched & 2nd actor extract outwards at the same time? Meaning 2nd actor will automatically extract outwards when 1st actor is retracting inwards when touched? If it's possible, how?
Place the actor in the scene, double click to take a look at its attributes.
The example I gave you is moving an actor between two horizontal positions, you can adjust the values of these positions however you want. Play around with these values and you should be able to get what you need.