Discuss Scratch

Neatherrow
Scratcher
100+ posts

How to make part of a sprite appear

I know it sounds weird, but i need it so when the fireflies are touching a tree only the part of the tree that is in the light will show and the rest is still hidden.
Project: https://scratch.mit.edu/projects/155618795/

Nothing to see here….

drmcw
Scratcher
1000+ posts

How to make part of a sprite appear

Make your light all black with a transparent hole. https://scratch.mit.edu/projects/139955652/ is a triangle rather than a hole but you hopefully get the idea.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Neatherrow
Scratcher
100+ posts

How to make part of a sprite appear

drmcw wrote:

Make your light all black with a transparent hole. https://scratch.mit.edu/projects/139955652/ is a triangle rather than a hole but you hopefully get the idea.
Thanks but the only way i could make your method work is if i made a side scroller, since when the light gets too close to the edge you can see the background on the opposite side.

Nothing to see here….

footsocktoe
Scratcher
1000+ posts

How to make part of a sprite appear

Neatherrow wrote:

drmcw wrote:

Make your light all black with a transparent hole. https://scratch.mit.edu/projects/139955652/ is a triangle rather than a hole but you hopefully get the idea.
Thanks but the only way i could make your method work is if i made a side scroller, since when the light gets too close to the edge you can see the background on the opposite side.

It's possible to make a double-sized sprite (960x720) that will solve that problem but only if you do it this way…

Make the sprite in Microsoft Paint (or any program) and save it as a 960x720 gif

In the Scratch editor, make sure you do not have the “costumes” tab selected

Using the folder icon in the left panel of the editor, upload your gif as a “new sprite”

Do NOT open it in the costume editor. If you do Scratch will crop it to 480x360.

But if you follow those instructions, you can move your giant sprite around and nothing will show on the edges.

Last edited by footsocktoe (April 22, 2017 02:38:37)



SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

drmcw
Scratcher
1000+ posts

How to make part of a sprite appear

Just increase the size
set size to () %

Scratch will limit the size so that it doesn't get much bigger than the screen, however you can get round that by having a small costume. You can then

switch costume to [small costume v]
set size to (1000) % // or whatever amount you want
switch costume to [normal costume v]

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
footsocktoe
Scratcher
1000+ posts

How to make part of a sprite appear

drmcw wrote:

Just increase the size
set size to () %

Scratch will limit the size so that it doesn't get much bigger than the screen, however you can get round that by having a small costume. You can then

switch costume to [small costume v]
set size to (1000) % // or whatever amount you want
switch costume to [normal costume v]

But if it “doesn't get much bigger than the screen” then how will that solve the problem of moving it to one side of the stage and having the underneath on the other side reveal itself?


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

drmcw
Scratcher
1000+ posts

How to make part of a sprite appear

footsocktoe wrote:

drmcw wrote:

Just increase the size
set size to () %

Scratch will limit the size so that it doesn't get much bigger than the screen, however you can get round that by having a small costume. You can then

switch costume to [small costume v]
set size to (1000) % // or whatever amount you want
switch costume to [normal costume v]

But if it “doesn't get much bigger than the screen” then how will that solve the problem of moving it to one side of the stage and having the underneath on the other side reveal itself?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
footsocktoe
Scratcher
1000+ posts

How to make part of a sprite appear

drmcw wrote:


…pending test…

OK, that does seem to work.

Last edited by footsocktoe (April 22, 2017 16:58:37)



SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

Neatherrow
Scratcher
100+ posts

How to make part of a sprite appear

footsocktoe wrote:

Neatherrow wrote:

drmcw wrote:

Make your light all black with a transparent hole. https://scratch.mit.edu/projects/139955652/ is a triangle rather than a hole but you hopefully get the idea.
Thanks but the only way i could make your method work is if i made a side scroller, since when the light gets too close to the edge you can see the background on the opposite side.

It's possible to make a double-sized sprite (960x720) that will solve that problem but only if you do it this way…

Make the sprite in Microsoft Paint (or any program) and save it as a 960x720 gif

In the Scratch editor, make sure you do not have the “costumes” tab selected

Using the folder icon in the left panel of the editor, upload your gif as a “new sprite”

Do NOT open it in the costume editor. If you do Scratch will crop it to 480x360.

But if you follow those instructions, you can move your giant sprite around and nothing will show on the edges.
Thanks

Nothing to see here….

Neatherrow
Scratcher
100+ posts

How to make part of a sprite appear

drmcw wrote:

Just increase the size
set size to () %

Scratch will limit the size so that it doesn't get much bigger than the screen, however you can get round that by having a small costume. You can then

switch costume to [small costume v]
set size to (1000) % // or whatever amount you want
switch costume to [normal costume v]
And Thanks

Nothing to see here….

hammer965
Scratcher
100+ posts

How to make part of a sprite appear

you could have various costumes for the tree that are parts of the tree and they each show only when a firefly is touching that part of the tree.

TRY these great games


TETRIS GAME THAT WORKS 1010 PONG BREAKOUT



























RedNinjaGameComputer
Scratcher
1 post

How to make part of a sprite appear

yah this isnt what it should be or what im thinkin… you know maps.. how they only show the part that your at. CAN SOMEONE HELP. PLEASE
https://scratch.mit.edu/projects/941314631/fullscreen/

Powered by DjangoBB