Now it scrolls smoothly and doesn't have any black gaps on the sides, and also doesn't jump when it gets to the final rows/final columns tile, so overall is FAR better from just a couple of minutes changing where a few things were.
There is one small bug left to fix - when you get to the last row/column, it tries to load a nonexistant tile from the next row/column (which is causing it to pause until you get away from that row/column) - just need a quick bit of code to fix that, but I know exactly what to do so this part (should) be simple :)
Edit: Just fixed it and updated the link - there is now no pauses at all when navigating the map - works perfectly at this stage!
Here's the better scrolling version:

Next steps:
1. Update comments/reorganise code so its cleaner and easier to read.
2. Add the character and start getting him moving!
I'm looking forward to this step :D
2 comments:
hey hey!
that’s pretty awesome! side scrolling done the proper way, nice job.
is the final version going to be that many pixels in height? 500-ish is it? The brief states 800 x 600.
would be cool to get the character in there, test out his movements and how that relates to the level structure.
Yeah, its going to be that size, its already 800x600 I think (unless I broke that a little while ago.. will check!
Post a Comment