Navigation

    CreatiCode Scratch Forum

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

    I Fixed The Border Pointing Bug! -- Tutorial

    小教程
    3
    5
    84
    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.
    • The_True_Odst
      The True ODST Best Forum Helpers last edited by The_True_Odst

      I hope I can do this @info-creaticode , We’ve really needed someone to have a breakthrough with this or at least a tutorial.

      Difficulty: 2-3/5

      (WARNING: Granted, this is not a foolproof plan; issues may still occur when going near the edge.)

      At first, When there is a screen ratio different from the original 4:3 (E.g. 16:9), the block used for pointing toward the mouse bugs when you near the edge. I may have found a way around this.

      –

      Create variables “player x”, “player y”, “speed”, “prev mouse x” and “prev mouse y”. Create the string of blocks shown below:

      (This will be your movement system and variable tracking “1”)

      I didn’t catch this at first, change the second “set prev mouse x to 0” block to “set prev mouse y to 0”

      6a1cb9ab-9223-428e-93a8-e1a22ac446ef-Screenshot 2025-06-08 9.36.16 AM.png
      1795feec-0841-4eae-a6d0-2e33ef308763-Screenshot 2025-06-08 9.36.36 AM.png
      429aa32e-617b-416d-97a7-1db39da6733f-Screenshot 2025-06-08 9.36.54 AM.png

      After that, create this string of code; feel free to configure the speed variables. (space is to run)

      d4b101aa-68b3-4485-aa9f-cd1e38863118-Screenshot 2025-06-08 9.39.04 AM.png

      After this, create variables “mouse x”, “mouse y”, and “rot” (“rot” variable is not required), and create this string:

      (viewport not required; this will be your variable tracking “2”)

      47c1e16e-c47f-4f0e-9e98-84eb0c05f16a-image.png

      Finally, create this string of code:

      (delay not required)

      c24c52d0-5927-4b0f-8b1f-de364571e4bd-image.png

      And voila! You’re little character (once created) can move and look around freely without too much issue!

      f70b3351-72e5-49cb-92d5-cf1954a8e384-Screen recording 2025-06-08 9.52.15 AM.gif

      ODST: Orbital Drop Ship Trooper
      (Halo Reference)

      1 Reply Last reply Reply Quote 0
      • S
        SonicPlushies last edited by

        My photo - Date (18).jpg Yeah @The_True_Odst no everything is wrong just a little mistakes but creaticode really avoids those things lefy handed👍 🚙

        sonicplushies

        The_True_Odst 1 Reply Last reply Reply Quote 0
        • The_True_Odst
          The True ODST Best Forum Helpers @SonicPlushiesCC last edited by

          @sonicplushiescc What?

          ODST: Orbital Drop Ship Trooper
          (Halo Reference)

          S 1 Reply Last reply Reply Quote 0
          • S
            SonicPlushies @The_True_Odst last edited by

            @the_true_odst you know this.My photo - Date (25).jpg

            sonicplushies

            1 Reply Last reply Reply Quote 0
            • S
              SonicPlushies last edited by

              the true ost hi idiotMy photo - Date (43).jpg

              1 Reply Last reply Reply Quote 0
              • First post
                Last post