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:

This is a random icon before clicked/touched

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?
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..
Posts: 6,160
Reputation: 19,775

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
Posts: 2
Reputation: 231

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests