Shake Screen with scrolling!?!?

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.
  • Hello again my friends!

    I have a screen shake effect that I've got it in this community (sorry to dont remember who are created it, but thank you very much anyway).

    Well, it's just a object with behavior and we just need to press spacebar to shake screen and flash screen (I removed the flash effect to make the example more simple).

    when the screenshake effect are activated, it just move a objects in a little randoms positions with a camera stucked in it.

    The problem is, when you are scrolling the screen....the effects of shake starts ok, but it stops to follow the object during the effect.

    To understand easy, just download the example below:

    Please login to see this attachment.

    Just press Right or Left arrow to move the red active, then without release arrow keys, press spacebar and see that the effect will start....but will not follow the red object, and when it finishes with the shake, it will just JUMP to the red active position..

    someone knows how to make this work?

    I just want to shake the screen with scrolling, using a active for camera like the example, because it will be following a car in my project.

    Best regards!

    Please login to see this link.

  • You can't center the window twice like that; you have to decide whether to center it on Active or ScreenShaker. Without changing anything (you've already discovered one issue with this approach), set window.X to X( "Active" ) + Shake X( "ScreenShaker" ) and that should fix the primary problem you've observed. Also, I highly recommend merging the ScreenShaker behavior into the main event editor for clarity.

    Alternatively, you can set the X and Y of ScreenShaker to the X and Y of the main character.

    Good luck!

  • Hi there paobrasil, aqui está um exemplo.
    muito facil de fazer amigo. XD
    Please login to see this picture.
    Please login to see this link.

    Please login to see this link.Please login to see this link.
    Take a course in Clickteam Fusion Please login to see this link.
    Youtube Please login to see this link.
    Please login to see this link.

  • Hey sparkman, thank you very much, but you example, the objects are moving, not the screen....I need to make this effect happens on a scrolling plataform 2d game like.....


    Snail, thank you very much my friend! Now, I'm just stuck in the concept of the screen edge.....when the active it's near of the edge, the screen wont shake....I can understand this because of the limit of the frame size...then I've tried to increase the virtual width and height.....but when I do this, the camera change it positions, showing the virtual space of the frame, you know how I can figure out this?

    You can see the problem below, I know that using virtual width and height, I need to fill the virtual space with my art....but I want to make the camera start showing just the "original" size of the frame, then when do the shake, shows the virtual space.....

    Please login to see this attachment.


    Best regards

    Please login to see this link.

  • It's like you all found the same example for your screen shaking!

    Yes, if you're going to have scrolling, you should have a buffer between the edge of what you see and the edge of where you can move. That's what the third frame in that example has. There are other ways to do this that I like more but it looks like you've already got this working. :)

  • Thanks!!

Participate now!

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