Discuss Scratch

mcdowels
Scratcher
17 posts

strange issue with sprite stamping

Im making a game which uses stamping for a lot. Essentially, the screen is cleared each frame and then everything is stamped to draw the next frame. What im noticing is a weird effect where parts of the sprites remain even after the frame has seemingly been cleared and drawn again. I assumed this was an error on my part, but I noticed that the “ghost sprites” would sometimes be partially cleared. I dont know how this could happen especially with nothing stamping over them. Does anyone know why this is happening? Could it be some problem with how stamping and clearing works? I have some pictures but idk if people use them on here? Any insight appreciated.

Last edited by mcdowels (Oct. 30, 2023 22:35:36)

geek62
Scratcher
100+ posts

strange issue with sprite stamping

I've never seen that happen, but I haven't used stamping in a long time, maybe since Scratch 2.
Maybe you could post some of those pictures to give us a clearer idea about it?
Want to share the project so we can see it happen?

supa-panda
Scratcher
100+ posts

strange issue with sprite stamping

Could you maybe supply a link to the project?

**Edited because of type-o

Last edited by supa-panda (Oct. 31, 2023 04:09:30)

geek62
Scratcher
100+ posts

strange issue with sprite stamping

supa-panda wrote:

Could you maybe supply a like to the project?
You mean a link, right?
matt4kj
Scratcher
76 posts

strange issue with sprite stamping

Sometimes scratch takes abit of time to update the frames
S_w0Lf
Scratcher
27 posts

strange issue with sprite stamping

Weird, I use pen stamping a lot and nothing like this ever happens.
Maybe pen stamping across multiple sprites works differently to pen stamping in one large sprite. But I have used pen stamping across two sprites before and it worked fine.
A solution might be using broadcasts to make each sprite run in the order you want to, something like this:

forever
erase all ::pen
broadcast [Sprite A - Tick v]
broadcast [Sprite B - Tick v]
broadcast [Sprite C - Tick v]
...
end

But there's not enough info to confirm whether this would fix it or not.

Last edited by S_w0Lf (Oct. 31, 2023 08:25:13)

deck26
Scratcher
1000+ posts

strange issue with sprite stamping

A link to the project is needed or we can only guess.
mcdowels
Scratcher
17 posts

strange issue with sprite stamping

i noticed it in someone elses project as well, on multiple platforms. it didnt use any stamping


heres some pictures from my project


sorry for the bad quality, and im aware that the recording process may have some effect.
that said, it appears that the lower terrain part has two ghosting, one is where its going to be and the other im not sure. and the green squares have the ghost effect only where they intersect with the terrain? you can see that where they are only above the background they are properly cleared.
matt4kj
Scratcher
76 posts

strange issue with sprite stamping

The same thing happened with the pen tool it started glitching and had lines going out from it
matt4kj
Scratcher
76 posts

strange issue with sprite stamping

and i know that i'm no helping i'm just trying to get to 100 posts
deck26
Scratcher
1000+ posts

strange issue with sprite stamping

matt4kj wrote:

and i know that i'm no helping i'm just trying to get to 100 posts
Please don't. Your 100 posts will come soon enough.

We still need to see this project as we otherwise have to make a lot of assumptions about what you're doing. My first rule of debugging is to make NO assumptions.
matt4kj
Scratcher
76 posts

strange issue with sprite stamping

ok sry sry sry i wont post here again…

Powered by DjangoBB