Hey! raylib forum is closing!

After a year with not much movement in the forum I decided to close it.

The cost of maintaining the hosting is a bit high for the usage of the platform, updating the forum and managing it is also a bit cumbersome and the truth is that I'm already trying to maintain multiple other networks pretty more active than this forum.

I'll recommend you to move to the other raylib networks:

- For a forum style, use Reddit: https://www.reddit.com/r/raylib/
- For direct messaging and questions, use Discord: https://discord.gg/VkzNHUE
- To report issues, use GitHub: https://github.com/raysan5/raylib

- Also, remember you can contact me personally on Twitter: https://twitter.com/raysan5 or directly by mail to ray[at]raylib.com

If you feel generous, you can also contribute to the project on my Patreon: https://www.patreon.com/raylib

Thanks to you all for joining the project and help to improve it with your questions. Keep it up! :)

Best Regards,

Ray

PD. Closing will be effective by October 31th.

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.