1
General / Scrolling Enemy with map
« on: August 24, 2010, 05:42:15 am »
Unless I'm confused about what you are using Mappy for it all should play nicely with Views I'm sure.
We use Mappy just as a tool to make the levels, saving them out in a text format that is then read by the engine. It should be your game that manages culling on and off screen tiles. I've noticed there are 'playback' libraries for Mappy, maybe thats what you are used to for allegro?
I'd suggest loading the map data into your SFML game and managing loading and displaying sprites from there are you would get to use views. Views are the best solution for what you are wanting to do.
If you have to change the position of everything everytime the screen scrolls you'll have lots of problems later on managing the locations of things.
We use Mappy just as a tool to make the levels, saving them out in a text format that is then read by the engine. It should be your game that manages culling on and off screen tiles. I've noticed there are 'playback' libraries for Mappy, maybe thats what you are used to for allegro?
I'd suggest loading the map data into your SFML game and managing loading and displaying sprites from there are you would get to use views. Views are the best solution for what you are wanting to do.
If you have to change the position of everything everytime the screen scrolls you'll have lots of problems later on managing the locations of things.