Discuss Scratch

Gamdapiko24
Scratcher
86 posts

Stamping not working

I am making an OS in scratch and I want to make a paint app. The idea is that when you open the paint app, you can drag your mouse around the canvas and it will store those movements into a list. A custom block will render it by stamping the costume to the locations in order. For some reason, it isn't stamping. I draw, and it dosent work. I see nothing. Can someone pls help ???

https://scratch.mit.edu/projects/1134263578/editor/
imfh
Scratcher
1000+ posts

Stamping not working

Two problems:

1. Your change idx by 1 block is outside of the loop, so it only ever draws the first point.

2. The pen is on the bottom layer. That means any sprite on the stage will cover it up. You will probably need to update your code to hide most sprites and change the backdrop to something for the user to draw on.
Gamdapiko24
Scratcher
86 posts

Stamping not working

imfh wrote:

Two problems:

1. Your change idx by 1 block is outside of the loop, so it only ever draws the first point.

2. The pen is on the bottom layer. That means any sprite on the stage will cover it up. You will probably need to update your code to hide most sprites and change the backdrop to something for the user to draw on.
Is there a way I can make the pen in the front layer ???
RokCoder
Scratcher
1000+ posts

Stamping not working

Gamdapiko24 wrote:

Is there a way I can make the pen in the front layer ???
No
jmb1293634
Scratcher
1000+ posts

Stamping not working

Gamdapiko24 wrote:

imfh wrote:

Two problems:

1. Your change idx by 1 block is outside of the loop, so it only ever draws the first point.

2. The pen is on the bottom layer. That means any sprite on the stage will cover it up. You will probably need to update your code to hide most sprites and change the backdrop to something for the user to draw on.
Is there a way I can make the pen in the front layer ???
you could stamp what you want it to go on top first then use
set [ghost v] effect to (100)
to make it invisible but touching scripts still work
10goto10
Scratcher
1000+ posts

Stamping not working

For the purpose of an OS simulation maybe your paint app rectangle could use clones rather than stamps. Doing this would have the issue of that only at most 300 dots on the screen but you don’t have to try and hide sprites to let the stamps show on the stage. You could also make your paint app be full screen that uses a white backdrop.





Gamdapiko24
Scratcher
86 posts

Stamping not working

10goto10 wrote:

For the purpose of an OS simulation maybe your paint app rectangle could use clones rather than stamps. Doing this would have the issue of that only at most 300 dots on the screen but you don’t have to try and hide sprites to let the stamps show on the stage. You could also make your paint app be full screen that uses a white backdrop.





No. My OS is going to be the best possible. I will do it with stamping. I already spent so much time.
RokCoder
Scratcher
1000+ posts

Stamping not working

Gamdapiko24 wrote:

No. My OS is going to be the best possible. I will do it with stamping. I already spent so much time.
I'm a fan of pen and stamping but stamping does have a quality drawback. A stamped image will never look anywhere near as sharp as a vector costume on a sprite/clone
Gamdapiko24
Scratcher
86 posts

Stamping not working

RokCoder wrote:

Gamdapiko24 wrote:

No. My OS is going to be the best possible. I will do it with stamping. I already spent so much time.
I'm a fan of pen and stamping but stamping does have a quality drawback. A stamped image will never look anywhere near as sharp as a vector costume on a sprite/clone
That is not a problem. This is my project.

Powered by DjangoBB