How can I get an active object to stop flashing

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi there everyone! This is my first post (not that it's really that important)

    So I've been working recently on a little platformer and I have most of the general basics done, but I recently came across an issue.

    As you may know, in most platform games, when the player's character touches an enemy and take damage they start to flash (becoming visible and invisible). I had found out how to make the active object (the player character) flash like I wanted, but I can't seem to get the flashing to stop. What I'm asking for is if anyone can help me stop the object from flashing.

    Sorry if it may sound a little confusing, but any assistance would be a tremendous help. Thanks in advance :)

  • Ok, here's how I got it to flash:

    In the event editor for the frame this takes place in, when the player character (Active Object) collides with the enemy object I set it to
    Visibility>Flash Object> Flash for 00" -10

    That's how the object is flashing, when an event is met it Flashes for 1/10 of a second

  • Ok I just tried that and it did fix the problem, but at the same time didn't help me achieve what I was trying to with the flashing
    Currently when the object is supposed to flash, it doesn't flash at all
    This could be due to where I put the "Make Object Reappear" in the event editor (I put it in the same grid space as where the flash for 1/10 of a second was put in, so it may have nullified the flash entirely)

    Is there a correct placement for this?

    To help clarify a little more, what I'm trying to achieve is that when the object collides with another, it should flash for a few seconds and then stop flashing (When the player character touches the enemy, it flashes for a few seconds then returns back to normal)

  • Make a hit cooldown time using a counter. When the player is attacked, set the counter to the amount of ticks (seconds*60) you want it to be flashing for. If the counter is greater than 0, subtract 1 from the counter. When the counter reaches 0, make the object reappear.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!