objeto bucle invisible y cambio de color

Get help using Construct 2

Post » Mon Feb 04, 2013 5:06 pm

Hi all,
I'm new to construct 2 and I'm reading the tutorial but still do not understand much the application. I need you to push a sprite becomes invisible when you press it again to make visible. For example the following loop would be achieved visible-invisible-visible-invisible-visible-invisible .............
also like to know how they can do so that pressing a button changes color sprite.

thanks
B
6
Posts: 40
Reputation: 1,005

Post » Mon Feb 04, 2013 6:38 pm

You have to give the sprite an "instance variable" and change the type to "boolean". Add a key that toggles it. When true set visible. when falls set invisible.

Here's an example
https://dl.dropbox.com/u/139739932/test/boolean.capx

Hope this helps
B
12
S
2
G
3
Posts: 59
Reputation: 2,628


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests