Original Post
I''m working on a 2d tile game and I''m having problems coming up with a way to link the right sprite to the right Monster/Npc/Player/Object. The way my sprite renderer works is it renders a sprite if the sprite''s map coordinates are on screen. I have an array of sprites structures that can be of any type of entity. What I want to know is how I should go about linking the correct sprite to the correct type of entity when each has it''s own structure with it''s own coordinates. Any help with this would be appreciated. Any help would be appreciated. Thanks.