Everyone designing a game will recognize this. You've got a hero sprite you can move. But for each step he takes, there's another frame in a set of animations (for instance with his feet moving). When he goes up or down the stairs or when he climbs a ladder, there's also a certain animation sequence. Or when he has to jump... How do you guys handle this in your games? With structures containing the frames and x and y coordinates needed for the animation? I'm sure this has been done before and I don't want to reinvent the wheel...
Login أوregister لوضع تعليقاتك