I need help with Temporary Invincibility

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! I'm new to MMF2 and I'm trying to make a simple platformer. Everything is going well except for the damage system. I have it to where if the player collides with a specific object, the counter will be subtracted by X amount. While it does its job with killing the player, I feel that the player should be temporarily invincible and flash for a few moments before being able to take damage again. The flashing effect after a player takes damage has a nice polished feel to it. Can anyone tell me how to do it? Thanks in advance.

  • There are a few ways you can do this.

    Upon collision & alt val a = 0 - flash object xx"xx - Set active alt value a to 20

    Alt val a >=1 - sub 1 from alt val a

    Alt val = 0 - only when event loops > reappear active

    Increase the alt val from 20 for longer invincibility times. Adjust flash time to preference. Usually 00'00'00'15" is pretty standard.

    Please login to see this link.

Participate now!

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