@Mark_Frankie_Richard wrote:
Hi
I'm struggling to come up with a sensible design for how to deal with animated sprites and I was wondering if any more experienced game programmers had any source code examples of solutions they had created. I want to be able to pick a sprite out from a sprite factory for use with a game object and im struggling to come up with sensible ways to deal with things like...
say I want an object that flies across the screen and destroys any objects it collides with, but the collision box won't match the draw box for a number of reasons, including that the draw box will have to draw a fireball sprite with a long tail with no collision.
any ideas? I guess I'm just looking for examples of collision detection and animated sprites in games. really struggling to wrap my head around how to solve these problems. I keep thinking of weird hacks that tie the animations to the objects they represent a little too closely and its annoying me.
I guess I'm just having a crisis of imagination due to lack of experience.
help?
Posts: 6
Participants: 2