Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make part of a sprite appear
- 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/
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.
- Neatherrow
- Scratcher
100+ posts
How to make part of a sprite appear
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. Make your light all black with a transparent hole.
Nothing to see here….
- footsocktoe
- Scratcher
1000+ posts
How to make part of a sprite appear
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. Make your light all black with a transparent hole.
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
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
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]
- footsocktoe
- Scratcher
1000+ posts
How to make part of a sprite appear
Just increase the sizeset 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 thenswitch 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
Just increase the sizeset 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 thenswitch 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?
- footsocktoe
- Scratcher
1000+ posts
How to make part of a sprite appear
…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
Thankshttps://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. Make your light all black with a transparent hole.
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.
Nothing to see here….
- Neatherrow
- Scratcher
100+ posts
How to make part of a sprite appear
And Thanks Just increase the sizeset 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 thenswitch costume to [small costume v]
set size to (1000) % // or whatever amount you want
switch costume to [normal costume v]
Nothing to see here….
- 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/
https://scratch.mit.edu/projects/941314631/fullscreen/
- Discussion Forums
- » Help with Scripts
- » How to make part of a sprite appear