More options for fade behavior

This forum is currently in read-only mode.
  • There are three more options I would like for the fade behavior:

    Start at opacity

    Fade to opacity - uses are better not fading all the way to 100% opacity

    Finish at opacity

    All settable via events. Finish at opacity is easy enough via events, so not really important, I just put it there for sake of completeness, but the other two can't be done via events. The best that can be done is if the opacity is too low/high, set it higher/lower, but that messes around with the fading in/out.

  • you could just edit opacity, fade doesnt have much purpose in construct, 1-2 lines or code can get the same efffect done

  • I know it's doable via events - I was thinking more about ease of coding and most importantly, speed. I know the behaviors are much faster than using events, and I tend to use fade on particles, so when there are a lot of objects on screen, that's a lot of objects to cycle through each frame.

    Although, I AM running on a p3 600, so I doubt many people would run into this issue anyway. It's not a necessity, just a suggestion.

  • i dont know if im right but, i do think fade is the exact same speed as doing it via events.

    what you realy need to do is destroy the object if it reaches opacity 0

    or else the invisible instances will eat up your proccesor

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Events will very rarely be the bottleneck of your game. Almost always, you can assume the rendering is going to be what slows your game down, if anything.

    Read the article - it explains how quite often the events will actually have zero impact on your game's performance.

  • I suppose this really is all because I'm running on a 600mhz p3. I like to make sure stuff can run on it, because if it can run on my machine, then it can run on pretty much anything, but realistically, most computers are way faster than mine. I was doing some complex stuff with particles - and lots and lots of them - and using the fade behavior did speed it up, but I couldn't do everything I wanted.

    Again, it's not really important. Although I would really use the second suggestion, setting the max opacity to fade to very often.

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