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
13 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
24 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.
CoolBoy4286
Scratcher
44 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.

I create awesome projects but no one views them, some awesome projects you might like: An Animation I created which no one views | A paint game I made, if you check out my profile and view my projects I will be
when green flag clicked
forever
if <you view and love and favourite my projects> then
I'll be :)
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