Discuss Scratch

SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

Not to rush, but, any update on this? I still can’t seem to get the pixel placement right and I don’t understand why.
PaSc_Clan
Scratcher
93 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

Not to rush, but, any update on this? I still can’t seem to get the pixel placement right and I don’t understand why.
Yes, I actually just finished making a system for it. You can find it here: https://scratch.mit.edu/projects/1134128751/

This system actually doesn't record colors, or have any lists at all. It doesn't store data either. It will just override the color of the pixel the mouse is currently hovering with the selected color, which you can change to any color you choose from the possible colors in scratch.

Last edited by PaSc_Clan (Feb. 14, 2025 17:21:25)

SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

PaSc_Clan wrote:

SalladShooter wrote:

Not to rush, but, any update on this? I still can’t seem to get the pixel placement right and I don’t understand why.
Yes, I actually just finished making a system for it. You can find it here: https://scratch.mit.edu/projects/1134128751/

This system actually doesn't record colors, or have any lists at all. It doesn't store data either. It will just override the color of the pixel the mouse is currently hovering with the selected color, which you can change to any color you choose from the possible colors in scratch.
Thanks!
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

One more thing how could I add an eraser tool? Similar to my current change color tool: https://scratch.mit.edu/projects/1133520896/.

Last edited by SalladShooter (Feb. 14, 2025 20:10:43)

PaSc_Clan
Scratcher
93 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

One more thing how could I add an eraser tool? Similar to my current change color tool: https://scratch.mit.edu/projects/1133520896/.

You could make it fill the color of that pixel in with the color code of the background. It would make it look erased.
PaSc_Clan
Scratcher
93 posts

Help With Placing Pixels Based On mouseX And mouseY

PaSc_Clan wrote:

SalladShooter wrote:

One more thing how could I add an eraser tool? Similar to my current change color tool: https://scratch.mit.edu/projects/1133520896/.

You could make it fill the color of that pixel in with the color code of the background. It would make it look erased.

I went ahead and added this into the project. You can check it out now.
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

PaSc_Clan wrote:

PaSc_Clan wrote:

SalladShooter wrote:

One more thing how could I add an eraser tool? Similar to my current change color tool: https://scratch.mit.edu/projects/1133520896/.

You could make it fill the color of that pixel in with the color code of the background. It would make it look erased.

I went ahead and added this into the project. You can check it out now.
Thank you so much!
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?
PaSc_Clan
Scratcher
93 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?

Animation functionality for what exactly? Could you be more specific?
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

PaSc_Clan wrote:

SalladShooter wrote:

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?

Animation functionality for what exactly? Could you be more specific?
I want to be able to make an animation software in the project similar to that of the online software Piskel.
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

PaSc_Clan wrote:

SalladShooter wrote:

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?

Animation functionality for what exactly? Could you be more specific?
I want to be able to make an animation software in the project similar to that of the online software Piskel.
Thats also why I was using lists before to store each frame so I could animate between them.
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

SalladShooter wrote:

PaSc_Clan wrote:

SalladShooter wrote:

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?

Animation functionality for what exactly? Could you be more specific?
I want to be able to make an animation software in the project similar to that of the online software Piskel.
Thats also why I was using lists before to store each frame so I could animate between them.
Using your current system it still might be possible to save a frame in a list item to animate, but I don’t necessarily know how to accomplish it.
SalladShooter
Scratcher
58 posts

Help With Placing Pixels Based On mouseX And mouseY

To build each frame it might have to place a pixel by moving every x and y through each letter of the list item (similar to my old system). And then it can animate by building different frames.
PaSc_Clan
Scratcher
93 posts

Help With Placing Pixels Based On mouseX And mouseY

SalladShooter wrote:

SalladShooter wrote:

SalladShooter wrote:

PaSc_Clan wrote:

SalladShooter wrote:

One final question, since I removed the lists to store the pixels, what could I do to add an animation functionality? Should I somehow add back the lists or something else?

Animation functionality for what exactly? Could you be more specific?
I want to be able to make an animation software in the project similar to that of the online software Piskel.
Thats also why I was using lists before to store each frame so I could animate between them.
Using your current system it still might be possible to save a frame in a list item to animate, but I don’t necessarily know how to accomplish it.

I’m sure I can come up with something. I don’t have direct access to my computer right now though, so it may be a little while until I make the system. I can certainly see what I can do for you.

Powered by DjangoBB