How do I make a drop-down menu

pjnolenpjnolen Member Posts: 152
edited November -1 in Working with GS (Mac)
I need a button, when pressed allows different options to be picked, they'll all be static, say 4 different options and that option to affect a calculation. I Just need a dropdown menu that the player can click down on, and pick 1 of 4 options and the program use that option for a calculation.

How do I do that in Basic Behaviors or create one?

Comments

  • PhoticsPhotics Member Posts: 4,172
    If button is pressed.
    Spawn four actors relative to the actor's position.
    Disable button until menu is reset.

    Then, those four actors could work like this.

    If... touched... do something.
    else... if touch is outside... reset menu attribute... destroy actor.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    if you need a demo i got one layin around.

    papiomitis at yahoo dot com
  • pjnolenpjnolen Member Posts: 152
    ok, I created my rule, and in it i have when touch is pressed spawn actor. I have 4 actors, but i can't see them when i preview. The options are direction, and position. I have chosen positions so that you can see all 4 options. But how do i allow the user to choose one of them, and it become the default for the main button.

    What I'm trying to do, essentially, is make a simple calculator. An area to put in a number, a drop-down to pick a calculation type(add, subtract, multiply and divide, another area for a number, then a 3rd area to display the answer. 1 button to tell it to calculate, and 1 button to clear the fields. That is all really, Is this possible with gamesalad?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Yes its possible youll have to use attributes and the expression editor with some math,
  • pjnolenpjnolen Member Posts: 152
    sent you an email John shoot me a example when you get the chance please sir.
  • pjnolenpjnolen Member Posts: 152
    This is odd, I want to display an = sign, but in the 'display text' field if I type in an = sign it automatically brings up the Expression Editor instead of just display an = sign.

    If I type in an actual = sign in the Expressions Editor and Play it, instead of an = sign being displayed it displays the text "Invalid Expression".

    I can have + - * / symbols but not an = ?
Sign In or Register to comment.