how do i make this shake effect?

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.
  • Give your character two alterable values called "shakeX" and "shakeTimer."
    Set its X position to X Position("character")+shakeX.
    Set the shakeTimer to your FrameRate*2, and Always substract 1 from the shakeTimer.
    When shakeTimer<FrameRate*0.5, and shakeTimer mod FrameRate*0.25=0 (Compare to two Values), set shakeX to RRandom(-1,1)*100.
    When shakeTime=0, set ShakeTimer to FrameRate.

  • It didnt work. I put -

    (Start of Frame)--------X position to X Position("character")+shakeX
    (Always)---------shakeTimer to FrameRate*2, substract 1 from the shakeTimer
    When shakeTimer<FrameRate*0.5, and shakeTimer mod FrameRate*0.25=0, set shakeX to RRandom(-1,1)*100
    When shakeTime=0, set ShakeTimer to FrameRate

    my character is just flying off the screen.

  • I made you an example, it has 2 groups of events, one with shake in X (enabled by default) and the other with shake in X and Y (disabled), you can also set the strength and the number of shakes you want.

    Please login to see this attachment.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

Participate now!

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