Move ACTOR (open door)

bigdbzbigdbz Member Posts: 13
edited January 2012 in Working with GS (Mac)
How can I press a button to open a door ie: "move door actor." Sort of like the old DOOM. You press a button and an opening appears.

Comments

  • bigdbzbigdbz Member Posts: 13
    Hi Guys.
    Maybe I need to word this better.
    I have a "red" arrow actor. When I press/touch the actor I want the floor under it to move so so as to leave a gap for another actor to fall through. When I press/touch a "green" arrow actor I need the floor to return to its original position.
    any ideas.
    db
  • CloudsClouds Member Posts: 1,599
    Red arrow: when touched changes attribute X from A to B.
    Green arrow: when touched changes attribute X from B to A.


    The door actor has a rule:
    if X attribute = B then move door to open position.
    if X attribute = A then move door to closed position.
  • bigdbzbigdbz Member Posts: 13
    Hi Tynan.
    I'll give that a go. Thanks for your help.
    DB
  • CloudsClouds Member Posts: 1,599
    edited January 2012
    @ bigdbz

    Here you go, here's the basic idea thrown together, Just one game attribute that gets switched between 0 and 1 (or 'true' and 'false').

    When red is pressed it changes this game attribute to 1.
    When green is pressed it changes this game attribute to 0.

    The door is told that when this game attribute is 1 then it must slide the door to the left - and that if this game attribute is 0 then it must slide the door to the right.

    File: http://www.mediafire.com/?540e4q2ehz4cu0e


    ...
  • bigdbzbigdbz Member Posts: 13
    Hi Tynan.
    That is unbelievable. Thank you so so much.
    If I get this game off the ground I'll put your name in my Development Team list in the credits.
    Thanks BIG-DBz
  • CloudsClouds Member Posts: 1,599
    "If I get this game off the ground I'll put your name in my Development Team list in the credits."

    : )

    Really there is no need for that . . . . but if you do can you please credit me as "Tynan, the best Gamesalad guy in the universe, much better than Tshirtbooth and mynameisace and all the rest".

    How easy is it to have my name flashing . . . . . in gold . . . ?

    : P
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @tynan
    Forget his game...... Just make an app with your name flashing in gold! :)
  • CloudsClouds Member Posts: 1,599
    @ LeonardDeveloper

    "Forget his game...... Just make an app with your name flashing in gold! :)"

    Lol ! Excellent idea, I will get working on it now.
Sign In or Register to comment.