Player name input Enabling & Disabling methods

edraceedrace Member Posts: 2
edited December 2012 in Working with GS (Mac)
im currently developing my first game...and i got stock in my Player name input...

i did this procedure
and it works well...

i made an another "Actor" named "goNext" wherein it will go to the "Next scene"

my concept was when the user is done in filling up the "keyboardinput" the "goNext" will be Enabled to "Touch"...

and if the user didn't fill up...the "goNext" will not work...


i hope you can help me guys...thank you in advance

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Okay, so you watched a video and it didn't work for you. Without seeing your rules, it's hard to know why. But I can suggest that you create a text attribute, game.KeyboardInput and use this with your Keyboard Input behavior.

    Have a rule that says When touch is Pressed --> Keyboard Input [game.KeyboardInput] [prompt]

    And other rule When game.KeyboardInput is
    (leave the expression blank)
    In the Otherwise section,
    Enable your goNext button

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • edraceedrace Member Posts: 2
    the video is working on me...but how can i Enable my "goNext" button?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I didn't explain that because you have several options, but the easiest is to add a line there that says Change Attribute game.allowNext (type boolean) to true. And then have a rule on your goNext button that says When attribute game.allowNext is true --> [all other rules for this actor go inside this rule]

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.