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

#1 2007-07-27 18:20:36

Slacker101
Scratcher
Registered: 2007-07-23
Posts: 60

Sprite not showing.

I have a sprite assigned to be a bullet but it wont show when told.
I have it set up like this-
When I recieve Bullet #4
forever{
go to x:53 Y:43
show
glide .8 secs to x:-112 Y:43
hide
}

the gunner is set up like this-
When "y" is pressed
foerever{
if{color green is over white
broadcast "bullet #4"}
stop script
}

Last edited by Slacker101 (2007-07-27 18:20:47)

Offline

 

#2 2007-07-28 01:30:48

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Sprite not showing.

What is the "forever-if" doing in the gunner script?
Perhaps you should use a simple if or a "wait until".

Offline

 

#3 2007-07-28 15:24:06

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Sprite not showing.

If the bullet isn't showing even when told to "show", check two things.

a) its costume is set to a costume that shows up against the background.
b) it isn't hidden behind another sprite, such as a sprite used for a scrolling background.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer