Menolikeumean

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

Menolikeumean

:c

Uartar

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

Scratcher--2021

what is the full script ?

supergamer10000

What is the full code?

CoolBoy4286

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.

deck26

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

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