I Fixed The Border Pointing Bug! -- Tutorial
-
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”
After that, create this string of code; feel free to configure the speed variables. (space is to run)
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”)
Finally, create this string of code:
(delay not required)
And voila! You’re little character (once created) can move and look around freely without too much issue!