Discuss Scratch

gooey135
Scratcher
60 posts

Sprite position

I have a sprite that is a very important part of my game. The sprites position is supposed to change based on what level you're on. However, once it reaches a certain point of the screen, it stops. I need to get past this block. Is there any way to get the sprite more off the screen, or to somehow increase the range of area of the scratch perimeters?
ExtraMental
Scratcher
100+ posts

Sprite position

Yes, you can make a sprite go offscreen farther, make a really huge costume (just a big square) and then do this:
switch costume to [big costume v]
go to [where you want it to go v]
switch costume to [regular costume v]
This works because scratch lets bigger costumes go outside the screen more, but doesn't readjust their positions when you change the costume. Hope it helps
gooey135
Scratcher
60 posts

Sprite position

ExtraMental wrote:

Yes, you can make a sprite go offscreen farther, make a really huge costume (just a big square) and then do this:
switch costume to [big costume v]
go to [where you want it to go v]
switch costume to [regular costume v]
This works because scratch lets bigger costumes go outside the screen more, but doesn't readjust their positions when you change the costume. Hope it helps
The problem is, Scratch won't sprites get too big, and I need to do just that. Is there a way to do so?
BZANDT_
Scratcher
49 posts

Sprite position

gooey135 wrote:

ExtraMental wrote:

Yes, you can make a sprite go offscreen farther, make a really huge costume (just a big square) and then do this:
switch costume to [big costume v]
go to [where you want it to go v]
switch costume to [regular costume v]
This works because scratch lets bigger costumes go outside the screen more, but doesn't readjust their positions when you change the costume. Hope it helps
The problem is, Scratch won't sprites get too big, and I need to do just that. Is there a way to do so?
You can adjust the size of the sprite.
set size to (whatever size you want) %
This won't work for specific costumes; but if you try
set size to (big size) %
go to [where you wanna go v]
set size to (100) %
it might work. Try it out!
(it worked for me once, i dunno if it will work in ur scenario. if it doesn't, you might wanna check if the size of the other costume is 100%. Scratch should let you make big costumes)

Last edited by BZANDT_ (Oct. 2, 2023 12:58:20)

gooey135
Scratcher
60 posts

Sprite position

BZANDT_ wrote:

gooey135 wrote:

ExtraMental wrote:

Yes, you can make a sprite go offscreen farther, make a really huge costume (just a big square) and then do this:
switch costume to [big costume v]
go to [where you want it to go v]
switch costume to [regular costume v]
This works because scratch lets bigger costumes go outside the screen more, but doesn't readjust their positions when you change the costume. Hope it helps
The problem is, Scratch won't sprites get too big, and I need to do just that. Is there a way to do so?
You can adjust the size of the sprite.
set size to (whatever size you want) %
This won't work for specific costumes; but if you try
set size to (big size) %
go to [where you wanna go v]
set size to (100) %
it might work. Try it out!
(it worked for me once, i dunno if it will work in ur scenario. if it doesn't, you might wanna check if the size of the other costume is 100%. Scratch should let you make big costumes)
I don't want to do this. I just need the sprite to be really big, but Scratch perimeters don't allow that. I am asking if there is a way to get past the perimeters.
ExtraMental
Scratcher
100+ posts

Sprite position

What do you mean? Scratch only has a cap on what the size you can set a sprite to is, not how big each costume can be. And you can go around the size limit using, again, a big costume, set size to the size you want and then switch back to regular costume.
gooey135
Scratcher
60 posts

Sprite position

ExtraMental wrote:

What do you mean? Scratch only has a cap on what the size you can set a sprite to is, not how big each costume can be. And you can go around the size limit using, again, a big costume, set size to the size you want and then switch back to regular costume.
So for example, I have a sprite. Based on what you're saying, I make the sprite costume size bigger, switch the costume to something smaller, move that costume, and put it back to the original costume?
switch costume to [1 v]
set size to (200) %
switch costume to [2 v]
go to x: (random) y: (random)
switch costume to [1 v]
gooey135
Scratcher
60 posts

Sprite position

Never mind, I found a solution!
set [Costumessize v] to [verysmall]
switch costume to [1 v]
set size to (750) %
go to x: (0) y: (0)
set [Costumesize v] to [verylarge]
<[Sizeofspriteonscreen] = [Massive!]>
BZANDT_
Scratcher
49 posts

Sprite position

gooey135 wrote:

Never mind, I found a solution!
set [Costumessize v] to [verysmall]
switch costume to [1 v]
set size to (750) %
go to x: (0) y: (0)
set [Costumesize v] to [verylarge]
<[Sizeofspriteonscreen] = [Massive!]>
Cool! I'm sorry that my method didn't work. Good luck on your project!
cookieclickerer33
Scratcher
1000+ posts

Sprite position

gooey135 wrote:

ExtraMental wrote:

What do you mean? Scratch only has a cap on what the size you can set a sprite to is, not how big each costume can be. And you can go around the size limit using, again, a big costume, set size to the size you want and then switch back to regular costume.
So for example, I have a sprite. Based on what you're saying, I make the sprite costume size bigger, switch the costume to something smaller, move that costume, and put it back to the original costume?
switch costume to [1 v]
set size to (200) %
switch costume to [2 v]
go to x: (random) y: (random)
switch costume to [1 v]
Yeah that’s how it works

Powered by DjangoBB