Discuss Scratch

Szysza135
New to Scratch
1 post

Lag when sprite touching

Hi,
I have problem with Scratch project.
There is “tourist” sprite, when it touch “bowl” sprite, then counter should increase and bowl should dissapear for a moment.
My problem is that after touching nothing is happening just after contact of these two objects. Bowl can dissapear only if I keep “tourist” sprite for few seconds, while it should happen immediately just after contact. I don't now what is wrong here. Can you check it and confirm if you have the same lag effect?

My project store here: [Removed]

Last edited by Harakou (April 18, 2021 21:49:39)

Theo_1er
Scratcher
500+ posts

Lag when sprite touching

The “glide” block stops the script while moving so it detects the other sprite at the end of the move. Do
when green flag clicked
forever
glide () secs to x: (0) y: (0)
end

when green flag clicked
forever
if <touching [ v] ?> then
end
end

Quand le risque est ridicule, la récompense est ridicule.
Harakou
Scratcher
1000+ posts

Lag when sprite touching

Hi! In general, rather than uploading your project to a file-sharing service, please just share it on Scratch so that people can inspect it that way. Thanks!

Powered by DjangoBB