Update SpritesInDepth
parent
772e7bfc9c
commit
b993d4b430
@ -86,6 +86,7 @@ One thing to be aware of with rotating and flipping. The sprites remain bound b
|
||||
|
||||
If you do not want to create rotated or flipped sprites, you can rotate and flip them using their original shape. This does result in a little bit slower drawing and extra memory usage over time (C# does clean the memory usage up, so this works fine for many games). You can use the Sprite.Rotation(int) function to rotate a sprite. And you can use the Sprite.MirrorHorizontally and Sprite.MirrorVertically Booleans to flip a sprite.
|
||||
Moving Sprites
|
||||
![Rotated](images/JellyRotated.png)
|
||||
|
||||
There are a few ways to have sprites move. Whenever possible, you want to use a movement function instead of simply placing a sprite at the new location. Even if the sprite location is moving a pixel at a time, you will find that manually moving the sprite will look jerky. The sprite movement functions that come with the sprite are set up on a timer such that they adjust to minor delays, so that movement always looks smooth.
|
||||
The two main ways to do movement are to use a MoveTo function, or set a direction and speed. The MoveTo functions can move to a specific point on the screen, or move to another sprite.
|
||||
|
Loading…
Reference in New Issue
Block a user