Using Sprite sheets

I've seen the rectangle example for animating sprite sheets but I'm not sure if I'm understanding it quite right.

If the rectangle is choosing which sprite to draw how do we hide the sprite sheet in game? Are we suppose to set the position of the sprite sheet outside the camera view so it doesn't be seen?

Sorry if this seems like a dumb question. I'm coming from areas of game dev like GameMaker where animated sprites are much easier to implement, so this is a whole new realm I'm diving into but eager to learn.

Comments

  • Hi Brandon,

    Actually, in that example I draw everything for reference, just to explain the concept but in a real game you just see the sprite of the character running, you don't draw the full texture or the selection rectangle.

    The example just illustrates the coding logic of how it works.
Sign In or Register to comment.