User Tag List

Results 1 to 2 of 2

Thread: Fade in/out of transparent Rooftops

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Mar 2016
    Location
    England
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Fade in/out of transparent Rooftops

    I'm looking to have the rooftops of building fade out as they character enters them on a map, with the character and the rooftop as active objects.

    In this manner, currently the 'Character' overlapping the 'Rooftop' sets it to invisible whilst them not overlapping sets it visible. Which works fine.

    I'm hoping to have a better fade out effect though, and ideally want the Character overlapping the rooftop to cause it to gain transparency every 0.5 seconds until it's gone, then loose transparency every 0.5 seconds when they aren't touching - which would provide a smooth fading effect.

    However I can't add or subtract from the value, instead only being able to Set the Alpha-Blending Coefficient.

    Does anyone know a way to do this?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    You set the alpha-blending co-efficient to 0 or 255 when the player overlaps. Then add 1 or subtract 1 until it reaches the other end i.e. fades out / fades in.

    For example:
    Player overlaps roof
    + Global Value Roof = 0
    --- Set Global Value Roof = 1
    --- Set Alpha-Blending co-efficient of roof to 255

    Global Value Roof = 1
    --- Set alpha blending co-efficient of roof = current value - 1

    Alpha-Blending co-efficient of roof = 0
    Global Value Roof = 1
    --- Set Global Value Roof = 2

    Then if the player overlaps with the global value roof = 2 - reverse the process and set the global value roof back to zero at the end of it.

Similar Threads

  1. Will there ever be an option to fade in and fade out frames on android exporter?
    By xcompanygames in forum Android Export Module 2.5
    Replies: 0
    Last Post: 4th May 2019, 07:27 AM
  2. fade to black and fade back in on same frame?
    By Philtered_Khaos in forum Fusion 2.5
    Replies: 7
    Last Post: 5th November 2016, 07:57 AM
  3. Replies: 1
    Last Post: 8th June 2015, 09:11 PM
  4. Fade In: Fade tranisiton stops
    By AndyH in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 11th March 2013, 12:25 PM
  5. Fade in und fade out problem !
    By Johnny in forum File Archive
    Replies: 3
    Last Post: 19th October 2009, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •