Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    shake screen

    2D Blocks
    1
    1
    145
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

      Introduction

      You can now make everything on the screen (the stage and all sprites) shake like this:

      shake.gif

       
      Note that this only works for 2D projects.

       
       

      The Shake Screen Block

      The shake screen block is in the motion category:

      5b666ce1-eecc-4b7a-aba7-12b1786bed56-image.png

       
      It takes 3 inputs:

      • Duration: how many seconds to keep the shaking effect
      • Frame Rate: how many frames per second. In each frame, the whole stage and all sprites are randomly shifted to a new position.
      • Magnitude: This is the maximum distance the screen may be shifted in both the x and y direction. For example, if magnitude is 20, then for any frame, the screen can be shifted left or right, up or down, but never more than 20 units from the center.
      1 Reply Last reply Reply Quote 1
      • First post
        Last post