Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Infinite mouse movment. (Rotation like in minecraft Java)
- rssa_romeo
-
Scratcher
100+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
you can use https://packager.turbowarp.org to use pointerlock you just have to check the Lock mouse cursor buton after you choose your project file/url and it will be just like you were wanting if you want to see it in action you can check out my project i made using this at https://carlathedritten.itch.io/minuet.If it's a platformer, clicking shouldn't be used for anything important, so you could only move the camera when the mouse is down (i.e., the user can “drag” the camera around).I see you've already implemented this in one of your platformers. I don't think it's possible to do any better.
- orangetheory
-
Scratcher
500+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
it would be cool if you could do something likethere's no such thing as that block. As for your question….forever
change [camera x v] by (mouse x)
change [camera y v] by (mouse y)
move mouse to x: [0] y: [0] ::sensing
end
when green flag clicked
forever
if ((mouse x) > (180)) then
Rendering code - right
end
if ((mouse x) < (-180)) then
Rendering code - left
end
end
assuming you know the rendering code
- Yusei-Fudo
-
Scratcher
1000+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
Everyone, please remember how old this topic is, it's from June 2020, a bit more than a year old. Remember when you post on old topics, it's called “necroposting”, which is a form of spam in this forum.
- Oumuamua
-
Scratcher
1000+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
Hello!
So many of you guys know me, @bobojoeho, @SpaceFlyer234 are making a 3D platformer. I was interested in ways to make it as similar to Minecraft as possible. So obviously in minecraft the rotation is done with the mouse, but it's infinite. Anyone know anyways to do it in scratch ALSO INFINITLY?
Thanks!
- @k0stya
Please do not spam and please have a reasonable answer. Examples allowed.
Well, i never heard of you…
Also, where is the project you need help with?
- griefercube
-
Scratcher
500+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
One question: is this necro?
Reporting to be sure.
Reporting to be sure.
- Yusei-Fudo
-
Scratcher
1000+ posts
Infinite mouse movment. (Rotation like in minecraft Java)
One question: is this necro?
Reporting to be sure.
It is.
Everyone, please remember how old this topic is, it's from June 2020, a bit more than a year old. Remember when you post on old topics, it's called “necroposting”, which is a form of spam in this forum.
- Discussion Forums
- » Help with Scripts
-
» Infinite mouse movment. (Rotation like in minecraft Java)




