Discuss Scratch

888superin
Scratcher
100+ posts

how do i make something get smaller when a variable gets bigger?

hey, everyone here!

I am making a roll-em-up game on here,and i need help making the map get smaller when the ball gets bigger.
the ball starts at a size of 0, and gets bigger rolling up things along the way.

i want to make everything smaller when the ball gets bigger so it is easier to see the things on screen.

this script doesn't work btw, already tried it.
when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to (() - ((500) * (katamari size))) %
switch costume to [map1 v]
end
scratch___user12345
Scratcher
1000+ posts

how do i make something get smaller when a variable gets bigger?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
Cat_Dusty
Scratcher
500+ posts

how do i make something get smaller when a variable gets bigger?

How about something like this?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
888superin
Scratcher
100+ posts

how do i make something get smaller when a variable gets bigger?

Cat_Dusty wrote:

How about something like this?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end

scratch___user12345 wrote:

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
this isn't working out with the game…

Last edited by 888superin (May 15, 2022 01:17:28)

scratch___user12345
Scratcher
1000+ posts

how do i make something get smaller when a variable gets bigger?

Cat_Dusty wrote:

How about something like this?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
lol, we posted the same answer at nearly the same time
888superin
Scratcher
100+ posts

how do i make something get smaller when a variable gets bigger?

katamari damacy
Cat_Dusty
Scratcher
500+ posts

how do i make something get smaller when a variable gets bigger?

scratch___user12345 wrote:

Cat_Dusty wrote:

How about something like this?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
lol, we posted the same answer at nearly the same time

lol

-break-

888superin, can you share a link to the project? Our solution would work, but some of the numbers would need to be changed. Seeing the project could help us get you the correct numbers





888superin
Scratcher
100+ posts

how do i make something get smaller when a variable gets bigger?

Cat_Dusty wrote:

scratch___user12345 wrote:

Cat_Dusty wrote:

How about something like this?

when I receive [start v]
forever
switch costume to [size glitcher v]
go to x: (scrollX) y: (scrollY)
set size to ((100) - (katamari size)) %
switch costume to [map1 v]
end
lol, we posted the same answer at nearly the same time

lol

-break-

888superin, can you share a link to the project? Our solution would work, but some of the numbers would need to be changed. Seeing the project could help us get you the correct numbers





ok then, veiw it in turbowarp here, the sprite is called map, tell me if you need anything.

Powered by DjangoBB