So amidst all of my efforts to straighten out the ghost whale and the screen scrolling, I solved a problem I abandoned way back in the times of yore when I first began to write the script for Fox's movement. Now the main sprite idles facing left instead of always wanting to turn around and face right. The small victories are happy ones.
Monday, May 24, 2010
Wednesday, May 19, 2010
Just tightening and polishing. I'm going to go through all the hitTests and try and make them more accurate using scripts from said file: pixel perfect collision detection
Also my frankenstein screen scrolling attempts have lead to fox being able to fly. flawlessly. Like a speeding bullet. Effortlessly he leaps tall trees in a single bound. naturally this is unacceptable, so I'm bringing it to the table Thursday.
Friday, May 14, 2010
Kit Run has a title scene now. It's much cooler than the screen shot would suggest. In actuality, there is super catchy music, and all the menu items bounce in ever so snes -y. It's very Snake Rattle n' Roll. Oh, and it's not finished. It will have clouds moving swiftly upwards in the background eventually.
Tuesday, May 11, 2010
my continued efforts have at last rendered the screen scrolling partially functional. Heres what I be tote'n:
if (this._y>208.8 & this._y<363.8)>
_root.groundlevel1._y = -30.0;
trace("stop");
}
else if (this._y>400.0 & this._y<450.0)>
_root.groundlevel1._y -= 10.0;
trace("down");
}
else if (this._y<120.0>75.0) {
_root.groundlevel1._y += 10.0;
trace("up");
}
else if (this._y>550.0){
_root.dead = true;
}
It's pretty good except for two problems: Predominantly, if the ground is in the process of scrolling, hitTests are disabled. So if the ground is moving up to keep up with the fox falling in a hole or something, and the ground hasnt finished scrolling when the fox lands, the fox will just fall right though the ground. hittests dont work when the mc is in motion.
Secondly, and not nearly as important but none the less, the above code tells the screen to scroll up or down ten respectively, but the default position is set. Thus is just reloads to its default position instead of scrolling pleasently, which makes it pretty choppy.
la!
Saturday, May 1, 2010
ALAS! I did some exciting scripting today; when you run out of time the ghost whale from bubble bobble load and effectively chases the fox. THE PROBLEM! The fox only actually moves when it's jumping, on the y-axis. When it's running left or right, the ground scrolls in the opposite direction and the fox runs in place. !! This complicates my follow code to the n'th degree. To follow this epic drama, check the kirupa thread here
Subscribe to:
Posts (Atom)