Quote:Original post by xM1k3x
You guys have both helped me tremendously and I now have it scrolling correctly. Only one thing seems weird once the window reaches the top of the map it begins to flash and look weird. Any ideas as to why? Like why doesnt it just stop moving and thats it?
Also what would be the best way to make the map go on for a while at least 2 mins worth of scrolling?
Thank you all so much I am learning alot from you guys.
Is it flashing to black, up and down, what? Weird in what way? Up and down would probably be because of the way you reset your scroll and speed variables. Black, or anything else, I don't know.
Timing: determine how many animation frames you want the scrolling to last (2mins * framesPerSecond), then divide the number of pixels of the level by that number. That's how many pixels you move per frame.