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

#1 2008-07-31 15:35:38

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Ghost Effect

O.K., I'm making a game which uses a sprite that makes everything dark (using the ghost effect). I also have a problem: The other sprite (the computer) isn't detecting the boxes! I have no clue why! IT detects the doors, but not the boxes! Is it the ghost effect sprite? Is it detecting that?!How can I fix this?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-07-31 18:11:38

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: Ghost Effect

Bluestribute wrote:

O.K., I'm making a game which uses a sprite that makes everything dark (using the ghost effect). I also have a problem: The other sprite (the computer) isn't detecting the boxes! I have no clue why! IT detects the doors, but not the boxes! Is it the ghost effect sprite? Is it detecting that?!How can I fix this?

Are the boxes similar in color?  It might be that they are not being properly detected.

Offline

 

#3 2008-07-31 18:15:12

dingdong
Scratcher
Registered: 2007-08-09
Posts: 1000+

Re: Ghost Effect

of course! I was making a science project game for the sea scorpion and I had this same prob, its a little tricky you have to have it detecting the colors on the sprites with the black thing  showing


http://img851.imageshack.us/img851/2829/superanbanner.png
click the image for my music

Offline

 

#4 2008-07-31 18:23:52

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Ghost Effect

If they are hidden (not using the ghost effect) then it isn't detected. I once had that problem (not knowing that my sprite was hidden, it was exactly the same as the background but cut out a bit).

Offline

 

#5 2008-07-31 18:38:40

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Ghost Effect

So how do I detect the boxes. Yes, they are a different color than anything else in the room, but it can't detect them


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-07-31 19:08:47

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Ghost Effect

Are you sensing for the sprite or for a color?

Offline

 

#7 2008-07-31 20:25:44

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Ghost Effect

Zelda123 wrote:

Are you sensing for the sprite or for a color?

Either. Whatever is easier to make a script for


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#8 2008-07-31 21:04:42

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Ghost Effect

Bluestribute wrote:

Zelda123 wrote:

Are you sensing for the sprite or for a color?

Either. Whatever is easier to make a script for

Are you currently sensing for a colour or a sprite? If you're sensing for a colour, then you may get some problems with the ghost effect (is it the boxes being ghosted? Is there a ghosted sprite on top of the boxes?). You shouldn't have a problem with sprite sensing.

Offline

 

#9 2008-07-31 21:08:57

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Ghost Effect

coolstuff wrote:

Bluestribute wrote:

Zelda123 wrote:

Are you sensing for the sprite or for a color?

Either. Whatever is easier to make a script for

Are you currently sensing for a colour or a sprite? If you're sensing for a colour, then you may get some problems with the ghost effect (is it the boxes being ghosted? Is there a ghosted sprite on top of the boxes?). You shouldn't have a problem with sprite sensing.

I do though. I put in a <if touching boxes> block, and it failed. I don't know why. If they were on the same layer, would that help? Because  I have a forever loop putting the darkness in front to have that eerie effect


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#10 2008-07-31 21:19:45

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Ghost Effect

Is the sprite pointing towards something.

Offline

 

#11 2008-07-31 21:21:31

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Ghost Effect

keroro645 wrote:

Is the sprite pointing towards something.

It touch senses it. I don't like these things! I have these awesome ideas, and get ruined by something like this! I would love the answer for this, or just go to the topic I made and submit a level so hopefully I won't need to deal with this sensing!


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#12 2008-07-31 21:44:06

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Ghost Effect

Remember the ai for the deathmatch game we were making.I think the reason the ai character wasnt working was that it was always pointing towards thehuman character.

Offline

 

#13 2008-07-31 21:57:00

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Ghost Effect

keroro645 wrote:

Remember the ai for the deathmatch game we were making.I think the reason the ai character wasnt working was that it was always pointing towards thehuman character.

NOt this. This is a completely random AI with no particular course


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer