Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Does anyone know how to make a torch?
- vicentearnabal
-
Scratcher
21 posts
Does anyone know how to make a torch?
Hi. I'm working on a game that includes a torch on it.
The idea is that a room it's pitch dark, but you can use your torch to reveal parts of the room.

⬆ How it should look like.
The illuminated part follows the cursor so you choose where to see
I tried making a big black square with a transparent circle, and using this program:
But the square isn't big enough for the screen. Anybody knows a solution?
(Also sorry if my english is bad)
The idea is that a room it's pitch dark, but you can use your torch to reveal parts of the room.

⬆ How it should look like.
The illuminated part follows the cursor so you choose where to see
I tried making a big black square with a transparent circle, and using this program:
when green flag clicked
forever
go to [Cursor]
end
But the square isn't big enough for the screen. Anybody knows a solution?
(Also sorry if my english is bad)
Last edited by vicentearnabal (Sept. 3, 2020 02:06:21)
- MopperFat1
-
Scratcher
100+ posts
Does anyone know how to make a torch?
create a black background and put some sprites that are also black. create a sprite layered at the very back that is colored whatever color you want your torch to be and make it go to the mouse pointer. I dont know how to make a different colored thing that shows up in the room when the torch touches it.
Last edited by MopperFat1 (Sept. 2, 2020 23:46:14)
- Wyan100
-
Scratcher
1000+ posts
Does anyone know how to make a torch?
The thing you did should work fine, just try making it bigger.
- game-titan
-
Scratcher
79 posts
Does anyone know how to make a torch?
But the square isn't big enough for the screen. Anybody knows a solution?
The thing you did should work fine, just try making it bigger.
Your English is great! I agree with vicentearnabal that the sprite doesn't seem to be able to cover the whole screen, at least I also wasn't able to figure out how to get it to.
create a black background and put some sprites that are also black. create a sprite layered at the very back that is colored whatever color you want your torch to be and make it go to the mouse pointer. I dont know how to make a different colored thing that shows up in the room when the torch touches it.
This was what I thought too and it basically worked for me. I really like the black background idea, although that might not work if you want the things that are lit up by the flashlight to be on a different colored background.
Here's my attempt: https://youtu.be/nDURoh5KgqY
- vicentearnabal
-
Scratcher
21 posts
Does anyone know how to make a torch?
The thing you did should work fine, just try making it bigger.
I can't
- vicentearnabal
-
Scratcher
21 posts
Does anyone know how to make a torch?
create a black background and put some sprites that are also black. create a sprite layered at the very back that is colored whatever color you want your torch to be and make it go to the mouse pointer. I dont know how to make a different colored thing that shows up in the room when the torch touches it.
That works perfectly! Thanks!
- game-titan
-
Scratcher
79 posts
Does anyone know how to make a torch?
The thing you did should work fine, just try making it bigger.
I can't
I learned something new: it turns out you can make it bigger: https://scratch.mit.edu/projects/422739999/
So you don't necessarily need the black background.
- Discussion Forums
- » Help with Scripts
-
» Does anyone know how to make a torch?