in my project, i have a major mproblem where the layers are messed up.
e.g if you go infront of 1 tree you can see through to another tree, this is a problem with scratch and is there any way to make the layers go to front from the closest to you?
Offline
The game im talking about is a 3d engine and you cant just use go to front, you need the different sprites to change layers dependant on where you are.
Offline
You can make sprites constantly go to the front then move back enough layers to be behind the main sprite, for example if the main character sprite is near the first layer you can do this:
Now if the sprite is behind the player, it will move behind it, but when it isn't behind the player, it will just go to the front.
Scratch renders graphical changes only after the script has been completed, so it won't actually be at the front before it moves back if it's behind the player (although you might see it flash if you don't run it in presentation mode/online).
Last edited by Kileymeister (2013-01-04 20:12:29)
Offline