confirm button contingent upon a row in gamesalad

digitalzerodigitalzero Member, BASIC Posts: 639
okay i have a character select button that has a left and right and your "picker" will either go to the next or previous character... this confirm button needs to be pressed only if the character is unlocked... and i have that in my table... is there anyway to pretty much write... if self is touched and TBcharacterunlocked, true, 1 then go to the next scene... i hope you guys understand what im talking about lol im horrible with explaining things i just pretty much need the "row" to be true to go to the next scene if you know what i mean

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It seems like you're asking how to compare a table cell value to an attribute. But you already asked that and I answered it here: http://forums.gamesalad.com/discussion/comment/375861/#Comment_375861.

    So if there's something else you need, post a screenshot of your game or a sketch of what you're hoping to do. Don't let words stand in your way! ;)

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

  • digitalzerodigitalzero Member, BASIC Posts: 639
    THANKS S MUCH @tatiang!!!! i will post a screenshot of what im talking about then :)
    Image and video hosting by TinyPic

    thats what i have... i also have a button that will allow the game.confirm to be true which is what the grey button is on the next picture here

    Image and video hosting by TinyPic

    for some reason though im pretty sure its the self.unlocked attribute thats not acting right... any advice @tatiang?
  • digitalzerodigitalzero Member, BASIC Posts: 639
    only because it will still allow me to go to the next scene eventhough hes not unlocked
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The way I do that is to give each instance of the character actor a unique value, for example self.position. After you add an attribute to an actor's prototype, you can double-click each instance on the scene and type in a value for that attribute. So you might number them 1 to 9 if you have 9 characters.

    When you click on a character, you would change attribute game.characterSelected to self.position.

    Then in your Rule, you would change self.Unlocked to tableCellValue(tableName,game.CharacterSelected,column) assuming you have each character's unlock data in a column and each row represents a different character.

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

  • digitalzerodigitalzero Member, BASIC Posts: 639
    i have something lke that but its an interger so it goes from 0 to 14 (because i have 15 characters) i had a dream that something lke that worked but let me try it and see what happens
  • digitalzerodigitalzero Member, BASIC Posts: 639
    but that makes me wonder why the self.unlocked attribute is not updating though... because the unlock attribute is constrained to the row and column of the character and it clearly says false but its still allowing me to go to the next scene
  • digitalzerodigitalzero Member, BASIC Posts: 639
    this is not working -___-
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @digitalzero if you're dreaming about game design then... you're on the right track! :D

    I can't see the full tableCellValue expression in your screenshot nor can I see the table itself. If you want, you can send me a PM with a link to download your file and I can check it out. Or you can post a few more screenshots. I'm sure we can figure it out.

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

  • digitalzerodigitalzero Member, BASIC Posts: 639
    yeah i dream about games all the time :) and since i have the skill set to draw them out then its not too much for me to do that at all... im actually a lefty so all this logistic stuff is kinda difficult for me to figure out LOL... but yeah im sending you a PM now... can you make notes of the stuff that you are talking about because i wanna learn about tables a lot because the next game that i make will be highly relied on tables because there are going to be tons of unlockable stuff :) by then i would hope to have a pro membership so that i can have in app purchases and hopefully become really rich LOL im sending you the PM now :) thanks so much @tatiang!!!!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Well if you don't become really rich, at least you'll have your dreams. ;)

    I'll see what I can do to help you. If it's a quick fix, I'll let you know what needs to be changed. If not, I can provide coding/consulting help for a fee.

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

  • digitalzerodigitalzero Member, BASIC Posts: 639
    i just dont know how to upload a zip file to your pm lol
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Upload the .zip file to a file-sharing service such as Dropbox. Then send me the share/download link in a PM.

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

  • digitalzerodigitalzero Member, BASIC Posts: 639
    okay im doing that now :)
Sign In or Register to comment.