Navigation

    CreatiCode Scratch Forum

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

    Border pointing bug fix -- !SIMPLIFIED!

    小教程
    1
    2
    51
    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.
    • Charles M.
      Charles Mitchum trusted helpers last edited by Charles M.

      WARNING: This tutorial will not work on a canvas that expands bigger than a 16:9 (this includes both canvas and viewport)

      If you want to know how to make it work on a bigger canvas/viewport than a 16:9, please view my previous tutorial:

      https://forum.creaticode.com/topic/1994/i-fixed-the-border-pointing-bug-tutorial?_=1759362965262

      –

      _Difficulty: 2/5

      d1573691-3ed4-455e-8920-583e6322b732-Screen recording 2025-09-29 1.24.02 PM.gif

      PART ONE:

      Have a small position dot set in the center of the scratch sprite creation tab. Use a forever loop to send this dot to the mouse pointer.

      Inside this same loop, add the positions of this dot by half of themselves and send it into two variables: MouѕeX and MouseY

      This is because a 16:9 portrait is almost double the size of regular Scratch 4:3 ratio

      This will make the mouse pointer have accurate proportions when aiming at it

      –

      PART TWO

      Use the “point towards” block with the two positions. Use the variables MouѕeX and Mouse Y for Position X and Position Y

      –

      1 Reply Last reply Reply Quote 0
      • Charles M.
        Charles Mitchum trusted helpers last edited by Charles M.

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • First post
          Last post