Change icons colour when clicked

Get help using Construct 2

Post » Sun May 26, 2013 7:32 am

Hello everybody :33
I'm working on an app for android, and I want to make icons change when clicked BEFORE they change layout. For example:

http://img707.imageshack.us/img707/9108/random1m.png

This is a random icon before clicked/touched

http://img802.imageshack.us/img802/4919/random2d.png

And this is a random icon while it's being clicked/touched

I tried to use the "in touch" function of Construct 2, but when i click the icon it quickly change layout! How can I do?
B
3
Posts: 2
Reputation: 231

Post » Sun May 26, 2013 10:37 am

Is the change layout action in the same event as the in touch action? Maybe you could use a system wait action to show the touched icon before changing layout.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun May 26, 2013 3:18 pm

It actually works! I used the "in touching - sprite" function: it sets the opacity to 40, then the system waits 0.5 seconds and then changes layout
Furthermore, there's a "on any touch end" function that sets all the sprites opacity to 100 when they're not clicked.
Thank you very much! :33
B
3
Posts: 2
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 22 guests