touch+fade in

0 favourites
  • 5 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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 !!

  • Yup, you can retrigger fade in at any time, so trigger it again .just before you set visible

  • 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

  • You might find solution here:

    Fade examples

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks ! I'm beginning to see the light !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)