I updated my last code (rewrote it from zero) with an A* pathfinding algorithm.
Click the picture to see it.
Here is the second part of my last post. I made a scrolling engine for
the background of my game, and now I added a player unit. With mouse moving you can look around your unit and make it move with pressing – W A S D – or – arrow keys -. Now the map is yours!
Do you need an engine to render your tile-based game background on the screen? If you need to scroll your image tiles on the best way for the performance, you should know something about the BitmapData class. You don’t have enough time to use DisplayObjects, the only data is you need is image. With copying pixels on the screen you can draw the updates on the fastest way.
So you should take some time to read this article on 8bitrocket, it shows how can you build your own engine to use buffer for the images you want to show.
I made my own version too, I missed some color from those examples
. I used the mouse pointer as camera, so with moving the cursor you can look around. I will upgrade this source to have a unit can be moved by arrow keys and will be followed by the “camera”. The mouse position can add some extra sight range for him so you can use the mouse to aim.


