ScratchData LogoScratchData
Back to SuperInky's profile

Joystick for Mobile Devices

SUSuperInky•Created March 11, 2020
Joystick for Mobile Devices
14
13
122 views
View on Scratch

Instructions

PROJECT MAKER: - Drag 'control' and 'settings_menu' into your backpack - Hide the variables - If you want to modify the init values for the joystick, go to 'control' and modify the purple block embedded within the WHENFLAGCLICKED block. - Also, make sure your game is able to get paused while the Joystick Settings menu is active (easily detectable with the jsSettings variable) There you have it! Enjoy using these for your projects (and don't forget to credit) PLAYER: - Double tap/click (can be glitchy) the joystick circle to open the Settings menu Yeah, pretty much it

Description

> CREDITS @-BlueO- - Main inspiration for the whole project @Hamuniii - Inspiration for following finger/mouse joystick > CHANGELOG 03/10/2020 (MMDDYY) 20:49 CentralStandardTime(CST) - hopefully fixed potential bug in mobile devices > MISC. INFO (kinda useful, too) joySimplifiedDir tells the direction of your joystick in 8 directions. NONE is no movement, but there's RIGHT, RIGHT_UP, UP, LEFT_UP, LEFT, LEFT_DOWN, DOWN and RIGHT_DOWN. You can use right_up, up and left_up for detecting jump movements and left_down, down and right_down for crouch or falling force movements (the latter being shown in the example cat's programming), or they all could be used in an RPG-based game; you'll need to add buttons this way though. I could possibly add it but I'm too lazy right now. It's worth to mention the joystick will lock itself if there's little distance between the center and the mouse's position, too. While using this project, you'll notice there's a SB2 Scratch Cat. You can control this cat by going to any direction, but it's two-dimensional so it only has X and Y axes (therefore it just cant go up/down like an RPG). Any movement close to the top parts of the joystick will make the cat jump and have slightly lower gravity (this lower gravity stops once you stop holding to any movement near the top); as opposed to this, any movement close to the bottom parts of the joystick will make the cat fall faster. PROJECT MADE IN SCRATCH VERSION: 2.0

Project Details

Project ID375417682
CreatedMarch 11, 2020
Last ModifiedMarch 11, 2020
SharedMarch 11, 2020
Visibilityvisible
CommentsAllowed