Discuss Scratch

shonkepg
New Scratcher
8 posts

bug that I don't understand Maze game

Hey guys,


Any idea as to why am I having this bug? Why can't I resize my sprite and most of all why the sprite isn't duplicating itself correctly? Thank you in advance

My project : https://scratch.mit.edu/projects/626183588/editor

UPDATE: So when I manually change size to 333 it's working properly, but as soon as i click the green flag it shrinks back in size. When I try to change the size by trying to change ther variable, it doesn't work

Last edited by shonkepg (Jan. 11, 2022 00:15:00)

CamG777
Scratcher
100+ posts

bug that I don't understand Maze game

You are setting the size to 0.2

Breadsticks
Apples
Cats

<[1] = [1]>
shonkepg
New Scratcher
8 posts

bug that I don't understand Maze game

i am following this tutorial https://www.youtube.com/watch?v=22Dpi5e9uz8&t=566s

The guy is doing the exact same thing. Do you have any suggestions please?
CamG777
Scratcher
100+ posts

bug that I don't understand Maze game

Not the EXACT same thing.
You are doing,

((100) / ((12) * (Tile Size)))

It should be,

(((100) / (12)) * (Tile Size))

Breadsticks
Apples
Cats

<[1] = [1]>
shonkepg
New Scratcher
8 posts

bug that I don't understand Maze game

OMG THANK YOU !!!
shonkepg
New Scratcher
8 posts

bug that I don't understand Maze game

Can you explain me the difference please between the two please?
Dezach
Scratcher
100+ posts

bug that I don't understand Maze game

((100) / ((12) * (Tile Size)))
Does 12 times the variable and then the division of 100 by the result of the multiplication.

(((100) / (12)) * (Tile Size))
Does the division of 100 by 12 before multiplying it by the variable.

In Scratch, the order of operations is defined by the order you put the blocks. The “smaller” the block is (the last you have put) will be calculated first and so on until the very first block, that is the “largest” one at the bottom of the pile.

Last edited by Dezach (Jan. 11, 2022 00:47:05)

shonkepg
New Scratcher
8 posts

bug that I don't understand Maze game

Thank you guys!

Powered by DjangoBB