Discuss Scratch

k0stya
Scratcher
50 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.
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

This may or not be possible.
rens2
Scratcher
48 posts

Infinite mouse movment. (Rotation like in minecraft Java)

k0stya wrote:

This may or not be possible.
https://scratch.mit.edu/projects/390546523/ you probably can't make infinite mouse movement in all directions but this helps a bit
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

rens2 wrote:

k0stya wrote:

This may or not be possible.
https://scratch.mit.edu/projects/390546523/ you probably can't make infinite mouse movement in all directions but this helps a bit
Thanks for replying, I'll take a look!
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

rens2 wrote:

k0stya wrote:

This may or not be possible.
https://scratch.mit.edu/projects/390546523/ you probably can't make infinite mouse movement in all directions but this helps a bit
P.S. u know how to see the code of the project id u sent me in the right clicking forums. How can I see the code?
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

rens2 wrote:

k0stya wrote:

This may or not be possible.
https://scratch.mit.edu/projects/390546523/ you probably can't make infinite mouse movement in all directions but this helps a bit
Sadly it's not infinite.
rens2
Scratcher
48 posts

Infinite mouse movment. (Rotation like in minecraft Java)

k0stya wrote:

rens2 wrote:

k0stya wrote:

This may or not be possible.
https://scratch.mit.edu/projects/390546523/ you probably can't make infinite mouse movement in all directions but this helps a bit
P.S. u know how to see the code of the project id u sent me in the right clicking forums. How can I see the code?
https://griffpatch.github.io/scratch-gui/# is the link I use
LEGAMER4665
Scratcher
84 posts

Infinite mouse movment. (Rotation like in minecraft Java)

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

LEGAMER4665 wrote:

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Yes but the problem would be then that u can’t exit the project.
LEGAMER4665
Scratcher
84 posts

Infinite mouse movment. (Rotation like in minecraft Java)

k0stya wrote:

LEGAMER4665 wrote:

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Yes but the problem would be then that u can’t exit the project.
repeatuntilkeyppressed?changecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

LEGAMER4665 wrote:

k0stya wrote:

LEGAMER4665 wrote:

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Yes but the problem would be then that u can’t exit the project.
repeatuntilkeyppressed?changecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Sadly scratch would never add that block.
PizzaAddict4Life
Scratcher
1000+ posts

Infinite mouse movment. (Rotation like in minecraft Java)

k0stya wrote:

LEGAMER4665 wrote:

k0stya wrote:

LEGAMER4665 wrote:

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Yes but the problem would be then that u can’t exit the project.
repeatuntilkeyppressed?changecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Sadly scratch would never add that block.

It technically isn't rejected… only the hide mouse pointer. Hmm… I might make a suggestion on that
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

PizzaAddict4Life wrote:

k0stya wrote:

LEGAMER4665 wrote:

k0stya wrote:

LEGAMER4665 wrote:

it would be cool if you could do something like
foreverchangecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Yes but the problem would be then that u can’t exit the project.
repeatuntilkeyppressed?changecamera xbymousexchangecamera ybymouseymovemousetox:0y:0
Sadly scratch would never add that block.

It technically isn't rejected… only the hide mouse pointer. Hmm… I might make a suggestion on that
Ok thanks!
PizzaAddict4Life
Scratcher
1000+ posts

Infinite mouse movment. (Rotation like in minecraft Java)

Here is the suggestion if you happen to want to give your support/no support or thoughts: https://scratch.mit.edu/discuss/topic/415147/

Anyway, for now I guess you will just have to use it without full rotation (though it is annoying). You could turn up the sensitivity though so you can have a few full rotations
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

PizzaAddict4Life wrote:

Here is the suggestion if you happen to want to give your support/no support or thoughts: https://scratch.mit.edu/discuss/topic/415147/

Anyway, for now I guess you will just have to use it without full rotation (though it is annoying). You could turn up the sensitivity though so you can have a few full rotations
Thanks I will support! And while we don’t have it we can do arrow keys.
---diamondpearl---
Scratcher
14 posts

Infinite mouse movment. (Rotation like in minecraft Java)

whenclickedforeverifthenfooendend
k0stya
Scratcher
50 posts

Infinite mouse movment. (Rotation like in minecraft Java)

---diamondpearl--- wrote:

whenclickedforeverifthenfooendend
Excuse me don't spam
-Rex-
Scratcher
500+ posts

Infinite mouse movment. (Rotation like in minecraft Java)

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).
-Rex-
Scratcher
500+ posts

Infinite mouse movment. (Rotation like in minecraft Java)

-Rex- wrote:

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.
WildTraces
Scratcher
100+ posts

Infinite mouse movment. (Rotation like in minecraft Java)

Try just using this (it isn't exactly what you want but it's the only way to do something along those lines):

whenclickedforeverifabsofmousex>50orabsofmousey>50thenchangex posbymousex/10changey posbymousey/10

Powered by DjangoBB