Original Post
Hi there! I´m coding a simple 2D graphics engine for my game and need some help. I have a TileMap class that handles everything related to the creation and animation of a tilemap. It is composed of Tile objects, and an animated tile is just a tile that changes its picture X times per second, like on a water animaton for instance. The thing is, the animated tilemap does work. However, it uses SDL_GetTicks() to know when to change one frame to another, and this simply stops all other graphic and key pressing events from happening (for there is only one thread that SDL uses,right?). The result is horrible but I don´t know what to do. So,any ideas?=/ Thanks, Carol