Good Evening Flash Gurus,
I need your help once again. I found some source code that is a PERFECT base for a platform game I am attempting to make. It has all the necessary elements that I’m looking for plus it is easily modified to make it absolutely perfect. The problem I’m having is not with the platform engine at all, but the custom scroll feature I am trying to build along with it.
Here’s what I’m trying to do:
I am specifying a the center point of the engine at wherever the character is, BUT (and this is where I’m getting tripped up) when the map reaches is absolute minimum and absolute maximum, the level stops scrolling, until you go back in the other direction, either on the X axis or Y axis.
I saw a version of this at the following address:
But the code is so verbose, I couldn’t even begin to fathom it, so I decided to make my own, which is always better in the long run, because I learn more that way.
I have specified all the necessary variables (at least I think I do), as you will be able to see in frame 1 on the FLA file I have attached. The movie works fine as long I have comment out the portion of code that I have commented out on frame one, but as soon as you activate that code, the level stays put at 0,0.
I know I’m probably missing something extremely simple, and I’m at my wits end, and fighting a cold, so my fuse is even shorter.
I’m wonder if one of you Flash Masters could look this FLA over and see what I’m missing.
Please do not modify the attached FLA file, if you must add code, please mark it well and comment it out so I can read it and apply it where I would like to apply it.