Guys,
I'm new to scratch and am doing a simple (forever if <touching sprite5>) play sound script. It works when I use the sprites that come with installation.
I took a picture of my son's Ninjago lego character and tried to use that and it doesn't work.
Same exact script, I tried png, gif, etc., but none work. Is there some special setting or format that must be used when using a custom picture or jpg?
Thx, KSTHOR
Offline
I don't think that there should be. All I can think of is that maybe the new custom sprite has not been labelled "sprite5" or whatever. Sometimes when you want to change one sprite in a project, you change the sprite but at the same time the sprite name changes from (say) "sprite5" to "sprite6". This will affect all "if <touching sprite5>" blocks- they must be updated to say "if <touching sprite6>"
I think that it is most likely to be a small, easy to miss problem of this sort. Maybe you could upload the working and non-working projects so that we can have a look for you.
Offline
PhirripSyrrip wrote:
I don't think that there should be. All I can think of is that maybe the new custom sprite has not been labelled "sprite5" or whatever. Sometimes when you want to change one sprite in a project, you change the sprite but at the same time the sprite name changes from (say) "sprite5" to "sprite6". This will affect all "if <touching sprite5>" blocks- they must be updated to say "if <touching sprite6>"
I think that it is most likely to be a small, easy to miss problem of this sort. Maybe you could upload the working and non-working projects so that we can have a look for you.
This could be the problem. Also, make sure that all the blank space around your sprite is erased after you import it - that could cause problems as well.
Offline