Newbie need help on project

kkchongkkchong Member Posts: 60
edited May 2012 in Working with GS (Mac)
Hi, I am new. How do i click my button to high light my actor,, then click again to turn off the high light,, but without affecting other features when the button is clicked.
tks

Best Answers

  • NettekovenGamesNettekovenGames Posts: 88
    Accepted Answer
    If you want to highlight the actor just click on it, and if you want to remove the highlight click anywhere on the screen

    I'm not sure if this is what you need its hard to understand
  • simo103simo103 Posts: 1,331
    Accepted Answer
    @kkchong ... the suggested method would have your actor switching colors on touch and then automatically switching back once the actor is not touched.

    If I read your request correctly it appears you want the actor to stay the new color until touched again and then switch back to the original color? If so create a self attribute (say 'color switch') make it an Index value zero, then in your touch rule have If touch is pressed then a change attribute .. change (self.color switch+1)%2.

    then create a new rule in that actor if Attribute self.color switch=1 then change color and in the otherwise have the original change color.
  • simo103simo103 Posts: 1,331
    Accepted Answer
    no problem ... esteemed GS members explained the use of the % character and how the switch works here, in case you wanted a fully understanding: http://forums.gamesalad.com/discussion/comment/318064/
  • tatiangtatiang Posts: 11,949
    Accepted Answer
    You're welcome. Keep the questions coming! And if you want to mention someone in the forums, you can add the @ symbol before their name like this: @kkchong and they will get an email notification that you mentioned them.

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

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    I don't understand what you mean. Do you want it to show up when you are editing a scene? That's not possible.

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

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    I don't really have an answer for you except that that's the way GameSalad works. The Display Text behavior has to run, just like any other behavior, in order for the text to show up. I think it would be really helpful to be able to add text to an actor's image without previewing, though.

    The only way to do it currently is to create an image with text for that actor using a graphic design program and then import it into GameSalad (quite a hassle).

    Probably the best solution would be to have a checkbox to show/hide the actor's name during editing.

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

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    I wouldn't think it would matter how many you have. You just need to extend the scene size and add more actors. I'm not sure if you have to adjust any rules, but you'll know when you add 5 or 10 more and see how it works. ;)

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

Answers

  • kkchongkkchong Member Posts: 60
    i am not sure if this is the answer i am looking for.
    i want to click the actor,, so it becomes highlighted,, i can change the color,, say from red to bright red,,, but when i click again,, i want to go back to normal
  • CluvCluv Member Posts: 229
    Create a rule that says on "mouse is click" or "touch is pressed" then

    Change attribute self.color, and change the color to what you need.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Create a rule that says on "mouse is click" or "touch is pressed" then

    Change attribute self.color, and change the color to what you need.
    Then, to have it revert back to normal, add another change attribute self.color to ___ in the Otherwise section of your rule.

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

  • CluvCluv Member Posts: 229
    @tatiang, thanks! Forgot.
  • kkchongkkchong Member Posts: 60
    thank you so much Cluv and Tatiang,, yes the second part was what i was looking for. tks..
  • kkchongkkchong Member Posts: 60
    simo103,,,awesome,, you read me correctly buddy,, tks,
  • kkchongkkchong Member Posts: 60
    great sharing simo103,,, kisses for you , but unfortunately i am not a pretty girl, hahaha
  • kkchongkkchong Member Posts: 60
    oh yes,, i thought i came across that link earlier http://forums.gamesalad.com/discussion/comment/318064/
    but as it dealt with both power and color, a bit more advance that what i was looking at, so this will be in my reading list after your tips that i will work on first,,
    geez,, i love this community
    kk
  • kkchongkkchong Member Posts: 60
    i want to make a note for completion of my reading of excellent explanation and reference from John, tenrdrmer, tatiang, and more from tenrdrrmer, mark and tshirtbooth's video on "on/off button using integer attributes". came across that many times,,but only now i understand how and why this works and for loops and cycles now,,,, great guys you all are.

  • kkchongkkchong Member Posts: 60
    @tatiang thank you for explaining. i was wondering earlier what that was, now you made clear.
    Nice.
  • kkchongkkchong Member Posts: 60
    Hi, can anyone explan how the display text can be made default text display instead of coming out only under preview?
    KK
  • kkchongkkchong Member Posts: 60
    @tatiang, i create an actor for a space and type on it words like play or new or back or forward (the menu),, why is it that they can be seen only when i load preview,, cant they appear like images on the edit scene?
    kk
  • kkchongkkchong Member Posts: 60
    thanks for explaining tatiang, if that is the way it works,, so be it,, smiles
    kk
  • kkchongkkchong Member Posts: 60
    tatiang, btw, i asked about vertically aligned simple compact, no sound, no magnifying, free cover flow,, can you advise how to do it? ( see my posting under free cover) kk
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I think you just take out the sound and Interpolate behaviors and then you'd have to figure out how to make it vertical. I haven't spend a lot of time with that template, but it could be as simple as replacing certain x attributes with y attributes.

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

  • kkchongkkchong Member Posts: 60
    tshirtbooths cover flow provides for only 10 boxes flowing,, any problem if there are 60 boxes?
    kk
  • kkchongkkchong Member Posts: 60
    thank you Tatiang,, most appreciated
Sign In or Register to comment.