Destroy Behavior with choice of Actor

gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
edited November -1 in Working with GS (Mac)
I think that'd be really useful; to add a pulldown menu to the Destroy behavior, so as to be able to have a choice of which Actor is to be destroyed in the Scene.

:-)

""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Comments

  • FatalCrestFatalCrest Member Posts: 113
    It would be actually.

    Sorry I can't tell if you need help or just want to share something with us, because I've got an idea to how this would work. Hehe xD
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    FatalCrest said:
    Sorry I can't tell if you need help or just want to share something with us, because I've got an idea to how this would work. Hehe xD

    Hi FatalCrest, it was a suggestion in the Suggestions section of the Forum; but no worries!

    I'd be interested to know what your idea is, please...

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • FatalCrestFatalCrest Member Posts: 113
    My Idea and what it needs:

    Attributes -
    isActor1Selected(boolean)
    isActor2Selected(boolean)
    isActor3Selected(boolean)
    and so on...

    destroyActor(Integer)
    actorToDestroy(Integer)
    menuOpened(boolean)

    Actors -

    Actor1
    Actor2
    Actor3
    and so on...

    Destroy Button
    Menu Tab

    On to how it'll work.

    Have the Menu Tab actor be somewhere on another layer(for HUD)

    -If Menu Tab is touched
    Animate(for transition)
    Change Attribute menuOpened to true
    Change Image to(w/e you want) (so you can have a full drop down type menu)

    For the Actor 1,2,3,etc

    -If menuOpened is true and touch is released
    Change Attribute actorToDestroy = 1,2,3,etc

    -If destroyActor = 1
    Destroy this actor (Set this up just for actor 1)

    and so on...

    For the Destroy Button Actor

    -If menuOpened is true
    Change Attribute Alpha to 1

    -If menuOpened is true and touch is released and actorToDestroy = 1
    Change Attribute destroyActor to 1

    -If menuOpened is true and touch is released and actorToDestroy = 3
    Change Attribute destroyActor to 3

    and so on...

    Yeah something along these lines, when I read what you had this is what i came up with at that sec, I also didn't include a close function to close the menu, but yeah here's my idea. xD
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Ah yes, good one FatalCrest! That's a really good workaround; thank you. This is more than a good enough workaround until/if we get to choose an actor in the Destroy Behaviour. Thanks again; I'm going to be using attributes in this situation straight away.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • FatalCrestFatalCrest Member Posts: 113
    Haha no problem, you and others help me so this is the least I can at least do for you. xD
Sign In or Register to comment.