touch+fade in

Get help using Construct 2

Post » Sun Jan 29, 2012 11:08 pm

Hi to all,
I'm completely new to Construct 2 but am already very excited with all the possibilities I foresee with it.
Should be a very simple trick but I need to make appear sprites when the iPad screen is touched.
Here's how I imagine the trick :
- Sprites are put on the layout with 0 opacity
- when an invisible sprite is touched (or clicked), opacity progressively increases to 100 (about 2 seconds)
- Then, the sprite becomes active and can be used as a button to trigger actions.

How can I do that ?? I did find the Fade behavior but it's triggered as soon as the layout starts.

What I would need is a reversed and slowed Destroy action...

Thanks for your help !!laurentk2012-01-29 23:09:56
B
3
Posts: 5
Reputation: 460

Post » Mon Jan 30, 2012 12:55 am

Yup, you can retrigger fade in at any time, so trigger it again .just before you set visible
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Mon Jan 30, 2012 8:39 am

Great ! But is there no other simple way like :
On touch object -> fade in (2 sec)

Ok, here's what I did
Sprite : fade (2, 0, 0, No)
Mouse -> cursor is over sprite -> set visible
                               -> fade : restart fade

Sprite appears only when cursor leaves sprite, not when it enters it
B
3
Posts: 5
Reputation: 460

Post » Mon Jan 30, 2012 9:07 am

You might find solution here:

Fade examples
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Mon Jan 30, 2012 9:42 am

Thanks ! I'm beginning to see the light !
B
3
Posts: 5
Reputation: 460


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, MChiz, Radulepy and 0 guests