Flash a sprite.

0 favourites
  • 5 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Hi

    I have a mpving sprite. When it moves over (collides with) another sprite i want to change its appearence for a short period; just a quick flash.

    So far i have spawned another sprite (the one i want to flash)on top of the orriginal and if i use the flash behaviour it does do what I want but not fast enough. I've set the wait time to 0.1 and its still too slow.

  • I don't know if it helps, but here is a set of tests I was doing for almost the exact same thing.

    ButterflyBlastTest.capx[ What you describe doing is like the "wait" option. The blast and longblast animations are just different number of frames and frame speeds. The fade assigns the spawned object a fade behavior, so it the blast is much more subtle. I'm sort of leaning towards that one, but may try fading an animation. (sort of a combination of blast animation and fade.)

  • I've set the wait time to 0.1 and its still too slow.

    You can make it quicker, like 0.05.

  • Hi

    Tokinsom I tried )0.05 and 0.005 but still too slow I don't think there is a difference in the two so I recon i've reached its limit with the FADE.

    kittiewan I have to download a newer version of C2 to play your file.

    I'll let you know if it solves my problem.

    Thanks Guys

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • : be careful with anything timed as less than 100 milliseconds (0.1 seconds). For example, on Windows (XP but still somewhat true on 7), it's impossible for the OS to ensure that something will happened in less than 100 milliseconds, everytime (apart from the refresh GUI loop for the graphic card). It's an "at best" procedure. So, when the OS can't certify that, with C/C++ code, I'm not sure you can enforce that on JS interpreted code, running in a webbrowser...

    So remember that when setting timeouts for flashing.

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