Discuss Scratch

Menolikeumean
Scratcher
5 posts

I did the thing for always point at mouse pointer but it does not face the cursor..

when green flag clicked
forever
point in direction ( mouse pointer)
end

Last edited by Menolikeumean (Oct. 17, 2021 01:30:05)

Menolikeumean
Scratcher
5 posts

I did the thing for always point at mouse pointer but it does not face the cursor..

:c
Uartar
Scratcher
14 posts

I did the thing for always point at mouse pointer but it does not face the cursor..

Try:
point towards [mouse-pointer v]
instead of
point in direction (mouse pointer)
Scratcher--2021
Scratcher
25 posts

I did the thing for always point at mouse pointer but it does not face the cursor..

what is the full script ?

Hello, I'm Sharky
If you made a studio for your project(s) only and other curators are adding their projects ? Is it becoming hard to manage ? Invite me in this studio and give me the manager perm. I will do it for you
Following me is required - Accepting F4F

Ads
Add your own projects in this studio to have a chance for them to get advertised.


supergamer10000
Scratcher
1000+ posts

I did the thing for always point at mouse pointer but it does not face the cursor..

What is the full code?

If you don't already know me my username is supergamer10000. In my spare time, I enjoy gaming and programming. I work on a wide range of projects, such as animations, games, and even operating systems!

If you are frustrated your script doesn't work read this →→→ “A life spent making mistakes is not only more honorable, but more useful than a life spent doing nothing.” — George Bernhard Shaw

Join my studio and visit my site. Also, don't forget to play my game.
CoolBoy4286
Scratcher
100+ posts

I did the thing for always point at mouse pointer but it does not face the cursor..

Uartar wrote:

Try:
point towards [mouse-pointer v]
instead of
point in direction (mouse pointer)
No, it will work as long as the variable mouse pointer has the same value as the direction of the mouse pointer.

Currently speedrunning to 1000 posts.
A wise man one said “Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.”
deck26
Scratcher
1000+ posts

I did the thing for always point at mouse pointer but it does not face the cursor..

CoolBoy4286 wrote:

Uartar wrote:

Try:
point towards [mouse-pointer v]
instead of
point in direction (mouse pointer)
No, it will work as long as the variable mouse pointer has the same value as the direction of the mouse pointer.
Well yes, but why go to the effort of keeping such a variable updated all the time when there's a built-in way to access the value? Your method would mean taking the current position of the sprite and that of the mouse and using trig to work out the angle so involves several unnecessary operations.
Menolikeumean
Scratcher
5 posts

I did the thing for always point at mouse pointer but it does not face the cursor..

Tysm everyone!! I did a bit of stuff and it worksssssss!!!!!!! TYSM!

Powered by DjangoBB

Standard | Mobile