Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite won't show?
- LotusDragon
-
28 posts
Sprite won't show?
i'm making a fnaf fan game and one of the things thats bugging me is that my camera sprite won't show. it used to, but once i added the scripts preventing it from showing before the camera thing is up, it wouldn't show at all! and i can't find the script that's making it disappear whenever i make it go up! can someone help me please???

- LotusDragon
-
28 posts
Sprite won't show?
example script:
when [3 v] key pressed
repeat (50)
if <(cams) = [Down]> then
hide
else
if <(power) < [0]> then
play sound [Buzz.mp3 v] until done
else
set [cam # v] to [3]
go to front
show
switch costume to [static v]
wait (0.1) secs
change [ ghost v] effect by (10)
wait (0.1) secs
change [ ghost v] effect by (10)
wait (0.1) secs
change [ ghost v] effect by (5)
wait (0.1) secs
clear graphic effects
wait (0.1) secs
switch costume to [Art room cam 3 v]
if <(Dave's location) = [3]> then
broadcast [dave art v]
else
broadcast [dave hide v]
if <(the bat location) = [3]> then
broadcast [bat art v]
else
broadcast [bat hide v]
if <(jay's location) = [3]> then
broadcast [jay art v]
else
broadcast [jay hide v]
end
end
end
end
- LotusDragon
-
28 posts
Sprite won't show?
Please identify/share the project.
i can't share it cause it's unfinished and the release date is later in the week, but it's called a Night at the Jay's Plate, and that example script is a copy of one from the cam sprite on the project.
- Toasty_Boy
-
100+ posts
Sprite won't show?
I haven't seen the project, so I wouldn't know for sure, but here are some tips to try:

- Check the order of the layers the sprites are in
- Check the ghost effect(if you have one)
- Check to see if the sprite is hidden before the start of the project

- LotusDragon
-
28 posts
Sprite won't show?
thanks, i guess, but i've already tried all of these I haven't seen the project, so I wouldn't know for sure, but here are some tips to try:
- Check the order of the layers the sprites are in
- Check the ghost effect(if you have one)
These are my tips. Like I said, they may not be completely accurate because I haven't seen the project itself, but I hope this helps.
- Check to see if the sprite is hidden before the start of the project

- deck26
-
1000+ posts
Sprite won't show?
Have you checked the values of your variables - the camera will only show if power is 0 or more and cams is not Down? The loop is repeating 50 times so the cumulative ghost effect is quickly going to reach 100! Try removing the ghost effect blocks or reducing the values and make sure the ghosting is cancelled initially.
- -Strife-
-
100+ posts
Sprite won't show?
Please give us the link of the unshared project. We could view it in the scratch 3 preview
- deck26
-
1000+ posts
Sprite won't show?
If it doesn't show when you combine all of these run manually (with nothing else running) and you've checked the costume is centred properly (and you've selected the right costume) you're going to have to share!
show
clear graphic effects
go to x: (0) y: (0)
set size to (100) %
go to front
- LotusDragon
-
28 posts
Sprite won't show?
oh! thanks for the tip. sorry i haven't been on for like a month ;-; the repeat thing is what i think was messing it up. (checks and changes…..) yup that was it thnx!!! Have you checked the values of your variables - the camera will only show if power is 0 or more and cams is not Down? The loop is repeating 50 times so the cumulative ghost effect is quickly going to reach 100! Try removing the ghost effect blocks or reducing the values and make sure the ghosting is cancelled initially.

- deck26
-
1000+ posts
Sprite won't show?
There should be a close option at the bottom of the topic page. Asking to close discussion.
- Discussion Forums
- » Help with Scripts
-
» Sprite won't show?