Discuss Scratch

-TheOrange-
Scratcher
83 posts

how do you make a sprite go off screen

i figured you can do this with custom blocks, but it'll just disappear as soon as the sprite is considered outside the project, i want a sprite to be able to go off screen, not disappear
Randomstuffee
Scratcher
72 posts

how do you make a sprite go off screen

What do you mean? Do you want something to appear off the project window? If so thats impossible. But if you just want something to go off screen just use a really big sprite and quickly swap sprites to it, move and switch back.
-TheOrange-
Scratcher
83 posts

how do you make a sprite go off screen

Randomstuffee wrote:

What do you mean? Do you want something to appear off the project window? If so thats impossible. But if you just want something to go off screen just use a really big sprite and quickly swap sprites to it, move and switch back.

a sprite that can go beyond the project frame
legendary34678
Scratcher
1000+ posts

how do you make a sprite go off screen

Yes, the method provided will allow a sprite to go beyond the project boundaries.
spaceinvader555
Scratcher
95 posts

how do you make a sprite go off screen

It's simpler than that, just make a big rectangle around your sprite that's not colored, sprite looks the same, needs no code, and still works.
ProSiuozl
Scratcher
30 posts

how do you make a sprite go off screen

use vars for x + y. hide sprite when offscreen. the vars set will continue going
josh500311
Scratcher
64 posts

how do you make a sprite go off screen

-TheOrange- wrote:

i figured you can do this with custom blocks, but it'll just disappear as soon as the sprite is considered outside the project, i want a sprite to be able to go off screen, not disappear
you can use a variables to track what X and Y position a sprite is and if it passes the limit that you considered “off screen” hide the sprite until it is in the boundaries that is in the screen
ScratchTheMan1212
Scratcher
2 posts

how do you make a sprite go off screen

When the sprite reaches its border its last 15 pixels are visable and if the sprite is way bigger it has less pixels visable so make it when sprite is touching edge make it super big and change its x or y by whatever you want!
ScratchTheMan1212
Scratcher
2 posts

how do you make a sprite go off screen

or you can do what josh does
Bitebite12
Scratcher
1000+ posts

how do you make a sprite go off screen

ScratchTheMan1212 wrote:

or you can do what josh does
Please don’t necropost. Thanks!
NMario84
Scratcher
1000+ posts

how do you make a sprite go off screen

I know this is a necropost, but I feel like we should post something “useful” to this thread.

So here is a script to make your sprites go completely off screen.
go to pos x: [1234567890] pos y: [y]

define go to pos x: (x) pos y: (y)
switch costume to (0x0 vector image v)
set size to ((1) / (0))
go to x: (x) y: (y)
switch costume to (original costume v)
set size to (100)%

It's code based rather than a random huge square around the original costume. But it works.
arturo_scratch_real
Scratcher
87 posts

how do you make a sprite go off screen

Bitebite12 wrote:

ScratchTheMan1212 wrote:

or you can do what josh does
Please don’t necropost. Thanks!
youre also technically necroposting (and so am i)

Last edited by arturo_scratch_real (June 18, 2025 20:16:37)

Bitebite12
Scratcher
1000+ posts

how do you make a sprite go off screen

arturo_scratch_real wrote:

Bitebite12 wrote:

ScratchTheMan1212 wrote:

or you can do what josh does
Please don’t necropost. Thanks!
youre also technically necroposting (and so am i)
I only inform then if they are new to the forums and don’t know better.
fork_is_yum
Scratcher
1 post

how do you make a sprite go off screen

-TheOrange- wrote:

i figured you can do this with custom blocks, but it'll just disappear as soon as the sprite is considered outside the project, i want a sprite to be able to go off screen, not disappear
You can make sprites go of screen by putting dots at the outer corners of the sprite box
hoppingcoin404
Scratcher
100+ posts

how do you make a sprite go off screen

-TheOrange- wrote:

i figured you can do this with custom blocks, but it'll just disappear as soon as the sprite is considered outside the project, i want a sprite to be able to go off screen, not disappear
try this
when [timer v] > (-1)
forever
switch costume to [big v]
switch costume to (id)
end
make id for this sprite only and use variables to change

Powered by DjangoBB