lazerlex [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=31275 Move &amp; animate map sprites <p>Hi, I'm making a top down RPG and am wanting to place my enemies, characters, items, etc. via the map instead of programmatically. The issue I'm having is finding a way to then move/animate/update those sprites.</p> <p>Currently my solution is: &quot;scan&quot; the map (iterate through each tile on the screen) and catalog the different types of sprites and their placement. Then I use mset to clear the tile and draw a new sprite of the same type in that same location and do the animations and movement from there. </p> <p>It works ok but seems like there's no way that's the best solution. Also it doesn't make it easy to have each element act in a unique way (different enemy movement patterns, etc.)</p> <p>Anyway, hope this makes sense. Let me know if you all have some tips and tricks to accomplishing something like this. Or if programmatically placing items is a better way to go.</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=31815 https://www.lexaloffle.com/bbs/?tid=31815 Tue, 04 Sep 2018 19:48:14 UTC