Discuss Scratch

game_pr0grammer
Scratcher
500+ posts

Script is broken.

So I am making another FNAF fan made and I found this error while I was making an AI.

A sound plays when the antagonist disappears. It works fine on two locations he goes, but when he goes on one location, It keeps playing the sound when you activate the mechanic that makes it go away. Then it stays there and does nothing and it won't go away. Someone help me!

The problem is in the sprite named “A eye”. Look for the script with the comment “hall ai”. Then maybe you could help me.

https://scratch.mit.edu/projects/159103406/
J-Craft
Scratcher
77 posts

Script is broken.

Alright, I will take a look at it and come back with whatever I find.
J-Craft
Scratcher
77 posts

Script is broken.

Unfortunately, I could not find anything. It was very confusing and I wasn't able to locate any glitches.
game_pr0grammer
Scratcher
500+ posts

Script is broken.

Then play the game. Script glitches are most likely found out while testing.
footsocktoe
Scratcher
1000+ posts

Script is broken.

game_pr0grammer wrote:

So I am making another FNAF fan made and I found this error while I was making an AI.

A sound plays when the antagonist disappears. It works fine on two locations he goes, but when he goes on one location, It keeps playing the sound when you activate the mechanic that makes it go away. Then it stays there and does nothing and it won't go away. Someone help me!

The problem is in the sprite named “A eye”. Look for the script with the comment “hall ai”. Then maybe you could help me.

https://scratch.mit.edu/projects/159103406/

Between Hall Ai, Door Ai, and Vent Ai, there is one script that doesn't follow the pattern with the last “set” block
game_pr0grammer
Scratcher
500+ posts

Script is broken.

I see no script. Is it the script tagged “hallway”?
footsocktoe
Scratcher
1000+ posts

Script is broken.

game_pr0grammer wrote:

I see no script. Is it the script tagged “hallway”?

That's the one. You have set 3 to 0. Is that correct? One of the other ones sets 3 to 0.

Powered by DjangoBB