I'm in the process of creating a map editor for my Space Shooter game, I've progressed some since I've begun. I've currently implemented smooth scrolling , by creating a screen full of sprites + 1 additional line, I move my entire Sprite Sheet down till I reach 32 (tile height) then I destroy the Sprite Line which is invisible and Create the new tile line bellow , and I repeat this proccess till I reach the map end. It works like magic , my only problem is that each new line of created sprites has it's animation position slightly off ... which creates an undesired wave effect.
It would be to complicated for me to try and explain, and to attach part of the code, maybe you would not understand. I'm attaching my entire editor with full source.
If you fire it up, and go to FILE -> OPEN MAP -> LEVEL02 , then keep pressing the UP arrow, it will start smooth scrolling down the map, you'll see what I mean.
How can I stop this? How can I sync the new tile line with the previous tiles ?