Joysticks don't work properly.
id: 749873
category: Help with Scripts
posts: 9
mantasvk1backup
loading
So I made a update where I added joystick and theres a bug idk where is the problem here is the game : https://scratch.mit.edu/projects/988435503/
bombardingppl
loading
what is the bug?
mantasvk1backup
loading
what is the bug?
when the joystick that is connected to player 1 is used player 2 also moves you can see it in the game
Wolf_Link21
loading
I don't think you can fix that, there can only be one mouse position detected a a time.
mantasvk1backup
loading
no its that players 1 joystick also moves player two like on this video : https://youtu.be/lIfee5FOW0o
mantasvk1backup
loading
h
Norse7
loading
Try this tutorial: https://www.youtube.com/watch?v=cI1mdVVvCWY&t=1583s
It helped me do this sort of thing. You just have to do the joystick part twice instead of the button
It helped me do this sort of thing. You just have to do the joystick part twice instead of the button
eefie_gang
loading
log the mouse position in a variable then say if the mouse is within a certain distance to the joystick them the joy stick works but only when its in said distance. the only issue is that the mouse can not be at 2 places at once so the joysticks will not work for 2 players at the same time.
mantasvk1backup
loading
thanks i will try it!