Discuss Scratch

anindya5
Scratcher
0 posts

Replacing mouse pointer with sprite

Hi,

Was hoping to change mouse pointer to sprite using the following code

when green flag clicked
forever
go to [ mouse-pointer]

end

But I can see the sprite only trailing behind the pointer, and significant distance between pointer and sprite. Was hoping to replace the pointer with the sprite.

I am new to scratch
flamekeeper700
Scratcher
100+ posts

Replacing mouse pointer with sprite

anindya5 wrote:

Hi,

Was hoping to change mouse pointer to sprite using the following code

when green flag clicked
forever
go to [ mouse-pointer]

end

But I can see the sprite only trailing behind the pointer, and significant distance between pointer and sprite. Was hoping to replace the pointer with the sprite.

I am new to scratch
hey, so your not going to be able to hide the mouse pointer but to speed up the trailing try doing a custom block with “run without screen refresh” enabled

MultiTasker801
Scratcher
100+ posts

Replacing mouse pointer with sprite

this exact thing is actually in tolors at item 1.8

you can't and will never be able to change the mouse pointer's appearance to a sprite
BladiPetrov
Scratcher
100+ posts

Replacing mouse pointer with sprite

flamekeeper700 wrote:

anindya5 wrote:

Hi,

Was hoping to change mouse pointer to sprite using the following code

when green flag clicked
forever
go to [ mouse-pointer]

end

But I can see the sprite only trailing behind the pointer, and significant distance between pointer and sprite. Was hoping to replace the pointer with the sprite.

I am new to scratch
hey, so your not going to be able to hide the mouse pointer but to speed up the trailing try doing a custom block with “run without screen refresh” enabled

That, at least, SHOULDN'T WORK, since a block already runs without screen refresh normally. It's probably something with layer order or so.
flamekeeper700
Scratcher
100+ posts

Replacing mouse pointer with sprite

BladiPetrov wrote:

That, at least, SHOULDN'T WORK, since a block already runs without screen refresh normally. It's probably something with layer order or so.



-snipped-
I didn't think it would change anything but it did speed it up for me a bit
Blazing_Codes
Scratcher
37 posts

Replacing mouse pointer with sprite

I don't think it is possible even
anindya5
Scratcher
0 posts

Replacing mouse pointer with sprite

It speeds up a bit, but at least the effect now is better. Thanks
julmik6478
Scratcher
500+ posts

Replacing mouse pointer with sprite

There is way using pointerlock function in turbowarp and this code:
when green flag clicked
if <<(mouse x) = [0]> and <(mouse y) = [0]>> then
forever
change x by (mouse x)
change y by (mouse y)
end
else
forever
go to [mouse pointer v]
end
end
And now project works normally in scratch and with pointerlock feature in turbowarp with pointerlock.

Powered by DjangoBB