This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-08 20:13:37

Ralfiyell
New Scratcher
Registered: 2010-07-04
Posts: 7

How can I create A flash Light Effect????

So what I'm trying to do is Have an entirely Black screen with a flash light, Once The flash light is turned on I want it to illimunate  The "Black Area" but only the portion in which the light beam is touching.

Through out the black area, there will be many different objects which you can only see when the light is shining on them.

So how should I go about doing this?

Offline

 

#2 2011-05-08 20:37:10

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: How can I create A flash Light Effect????

Ralfiyell wrote:

So what I'm trying to do is Have an entirely Black screen with a flash light, Once The flash light is turned on I want it to illimunate  The "Black Area" but only the portion in which the light beam is touching.

Through out the black area, there will be many different objects which you can only see when the light is shining on them.

So how should I go about doing this?

I'm guessing something with pens.

No idea though.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#3 2011-05-09 03:06:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: How can I create A flash Light Effect????

You use ghost effect, and some clever programming. People have done it before, use the magical search feature in the top right.


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2011-05-09 09:17:53

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: How can I create A flash Light Effect????

Or, your background could be simply a black sprite with a hole in the middle that always follows the mouse. Then you could "glue" four other black sprites to the edges. Tell me if it works!  wink


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#5 2011-05-09 17:33:08

Ralfiyell
New Scratcher
Registered: 2010-07-04
Posts: 7

Re: How can I create A flash Light Effect????

I tried the idea with black sprite that follows the mouse, but for some reason i couldn't get it big enough and if i moved over to far it would go off the edge and show everything behind it.

thanks though for the idea

Offline

 

#6 2011-05-09 18:33:07

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: How can I create A flash Light Effect????

I would make the in an external program. Prevents the size limit problems

Last edited by Taneb (2011-05-09 18:33:32)

Offline

 

#7 2011-05-12 16:30:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How can I create A flash Light Effect????

Hmmm... many Scratchers have done this successfully before.

If you don't mind having black scenery, I'd just do a black background (with black scenery) and have a flashlight set to a ghost 50 which follows the mouse (this time, in yellow).

This means that everything under the range of the flashlight will be seen, because it's black against yellow, and everything else won't.

If you do mind having a black scenery, then follow Jwosty's suggestion. I'm sure it works: instead of trying to resize the one sprite enormously, try having other sprites around it completely black.

Offline

 

#8 2011-05-14 20:45:36

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: How can I create A flash Light Effect????

What I use is simple, first left click the stage, select grab screen region for new sprite, now select the WHOLE screen, from the VERY top left (above the scratch logo) to the VERY bottom right. (make sure scratch is on maximize) Wait for the new sprite to load. Go to the sprites costumes and make a new costume, try to scroll to the closest to the middle as you can and use the circle tool to make a hollow block circle, now fill outside of the circle black, now use the fill, switch to color black, now switch the foreground color with the background color. Now use the fading circle fill tool and click in the middle of the tool. Make the sprite ghost effect to 30, and make it always go to the mouse pointer. Thats all!

Last edited by Pecola1 (2011-05-14 20:46:21)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#9 2011-08-17 23:57:14

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: How can I create A flash Light Effect????

Yeah, that's the better way. I found a not-so-smart solution with the help of my friend, block hacking. It's incredibly laggy, and the detail isn't that good, but it is more straightforward (in a bad way) You use 1728 black squares that change ghost effect according to the distance from a light source. It's more configurable and you can have better stages, but it's HUGE. I can't even upload it. At least it's better than 172,800 individual pixels or something.

Last edited by lalala3 (2011-08-18 00:58:59)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#10 2012-01-23 18:52:25

jcsgoff
Scratcher
Registered: 2011-03-28
Posts: 5

Re: How can I create A flash Light Effect????

Jwosty wrote:

Or, your background could be simply a black sprite with a hole in the middle that always follows the mouse. Then you could "glue" four other black sprites to the edges. Tell me if it works! ;)

I made one and it worked great! thanks! Here's the link http://scratch.mit.edu/projects/jcsgoff/2290907 :)

Offline

 

#11 2012-01-23 19:52:12

partyman
Scratcher
Registered: 2012-01-11
Posts: 100+

Re: How can I create A flash Light Effect????

Ralfiyell wrote:

I tried the idea with black sprite that follows the mouse, but for some reason i couldn't get it big enough and if i moved over to far it would go off the edge and show everything behind it.

thanks though for the idea

Try increasing the sprite's size.

Offline

 

#12 2012-01-24 02:07:33

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: How can I create A flash Light Effect????

Black background.

Black sprite.

50% Ghost sprite that follows mouse.

Used successfully by many Scratchers.  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#13 2012-01-24 06:43:52

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: How can I create A flash Light Effect????

http://scratch.mit.edu/projects/Brass45/646132 — Brass45's perfect tutorial.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#14 2012-01-24 07:13:35

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: How can I create A flash Light Effect????

Here is an example I made for you :3 http://scratch.mit.edu/projects/slinger_2/2291461


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#15 2012-01-24 13:23:08

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: How can I create A flash Light Effect????


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

Board footer