Oh Yeah? You and what army?
So…calling it quits for tonight, hopefully will get it working today before 5.
I’ve the got (un-animated) player on the field, but I’ve been trying to control his gravity with the AS3.0 Tween object – I can make him go up on command at a defined rate (Think Old Arcade Donkey Kong – jump is always the same height, and always goes down at the same rate, only if he falls further does he fall further.), but I can’t get that to work with the “Hey! You’re hitting the ground! Stop falling!” code.
Been trying to use the character’s y value (Based off of his shoe right now, if I’m not mistaken) + 2 (Since going downwards means adding to the y-value…yeah, really annoying when all math courses do it the other way around…but you learn to eventually re-program oneself that way.) to account for the ground (So technically, floating two pixels above the ground), and then stopping the gravity tween object. But it’s not stopping!
It actually appears to be that my per-frame check isn’t kicking in, and I can’t find out why. So going to take a look at that…at like 12 noon, in 8 hours or so. Right now I need to rest.
You can find the code here:
http://www.sfu.ca/~ajr12/LudumDare22/NearBeta/
As you can probably guess, yeah…no army of enemies this time around. Might do this in my spare time for fun instead, however. I do like my approach to the theme.
After I get the jumping to work, I’ll be working with the HTML holder for it, I guess. Actually, no. Doing that now. Getting it over with.
Hopefully see you all in 8 hours!