How to make an actor retractable ?

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

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2014

    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

  • GSlostsoulGSlostsoul Member Posts: 22

    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?

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2014

    @GSlostsoul said:
    Is there any other way to see the coordinates while we place the actor in the scene.?

    Place the actor in the scene, double click to take a look at its attributes.

    @GSlostsoul said: Is it possible to make 1st actor retract inwards when touched & 2nd actor extract outwards at the same time?

    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.

Sign In or Register to comment.