Newbie need help on project
![kkchong](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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
tks
Best Answers
-
NettekovenGames Posts: 88
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 -
simo103 Posts: 1,331
@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. -
simo103 Posts: 1,331
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/ -
tatiang Posts: 11,949
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
-
tatiang Posts: 11,949
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
-
tatiang Posts: 11,949
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
-
tatiang Posts: 11,949
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
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
Change attribute self.color, and change the color to what you need.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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
Nice.
KK
kk
kk
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
kk