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

#1 2012-02-04 20:17:03

kelpow
Scratcher
Registered: 2012-02-03
Posts: 83

line of sight

can anyone REALY explain to me how to make line of sight? im having trouble making a good invisible one. any help?

Offline

 

#2 2012-02-04 20:17:59

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: line of sight

A line of sight?

Are you making a platforming game?

I'm not exactly sure what you're asking.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2012-02-04 20:26:02

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: line of sight

1. Make a sprite.
2. Set ghost effect to 100.
3. PROFIT!


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#4 2012-02-04 20:29:55

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

Re: line of sight

What's a line of sight?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#5 2012-02-04 20:39:50

kelpow
Scratcher
Registered: 2012-02-03
Posts: 83

Re: line of sight

videogame9 wrote:

1. Make a sprite.
2. Set ghost effect to 100.
3. PROFIT!

i need a constant line of sight, infinite (in theory) range, and a constant update feed. can you explain a little bit more in detail?

Offline

 

#6 2012-02-05 04:30:38

Magmawulf
New Scratcher
Registered: 2012-01-14
Posts: 80

Re: line of sight

If I can think of the way that Line of Sight Works, it depends on what you want it to do.
If I wanted to add a line of sight of say, 15 degrees, I'd make a sprite which was 15 degrees, and make it as long as possible for 'infinite'.  The problem is that in Scratch, it's all based on Sensors, so 'infinite' is pretty much impossible, besides using some techniques which I don't really know about.  hmm   An example of line of sight is this project:
http://scratch.mit.edu/projects/Magmawulf/2314067

Hope this helps!  smile

Offline

 

Board footer