So I give up on the bell game, but for every one who wants to see what it looks like to code a flash game, here it is:
Code:
// Created By Sepher0
Version = "v0.05";
keydown = false;
speed = 0;
minspeed = 0;
maxspeed = 15;
undermax = 12;
acspeed = 2;
slspeed = 3;
curdird = true;
unlocked = true;
action = false;
moving = false;
speeddir = "down";
dash = false;
dashani = false;
dashtimermax = 30;
dashtimer = dashtimermax;
vertspeed = 5;
vertslow = 3;
Player_B._x = 250;
Player_B._y = 250;
jump = false;
jumpani = false;
jumpspace = 0;
jumpcompleted == false;
_root.onEnterFrame = function() {
playerX = Player_B._x;
playerY = Player_B._y;
if (dash == false && dashtimer<dashtimermax) {
dashtimer = dashtimer+.25;
}
if ((speed>=maxspeed) && (Key.isDown(Key.SPACE)) && (dashtimer>0)) {
if (dashani == false) {
Player_B.gotoAndPlay("Bell_Dash");
dashani = true;
dash = true;
}
speed = 25;
dashtimer = dashtimer-1;
} else {
dashani = false;
dash = false;
}
if ((Key.isDown(Key.CONTROL))) {
if (jumpani == false) {
Player_B.gotoAndStop("Bell_JumpUp");
jumpani = true;
jump = true;
jumpcompleted = false;
}
if ((jumpspace<10) && (jumpspace>-1) && (jumpcompleted == false)) {
jumpspace += 1;
}
if (jumpspace>=10) {
jumpspace = -1;
jumpcompleted = true;
}
if ((jumpspace<=-1) && (jumpcompleted == true)) {
jumpspace -= 1;
if (jumpspace<-4) {
jumpspace = 0;
}
}
Player_B._y -= jumpspace;
jumpani = false;
if (jumpspace == 0) {
jump = false;
jumpcompleted = true;
}
}
if (speed>0) {
moving = true;
}
if (speed<0) {
speed = 0;
}
if (speed == 0) {
moving = false;
}
if (!Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT) && !Key.isDown(Key.SPACE) && !Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
if (dash == false) {
if (curdird == true) {
Player_B.gotoAndStop("Bell_stand");
}
if (curdird == false) {
Player_B.gotoAndStop("Bell_Away");
}
}
if (speed>minspeed) {
speed -= slspeed;
}
if (speed<0) {
speed = 0;
}
if (speeddir == "right") {
Player_B._x += speed;
}
if (speeddir == "left") {
Player_B._x -= speed;
}
speed = speed-vertslow;
if (speed<0) {
speed = 0;
}
if (speeddir == "down") {
Player_B._y += speed;
}
if (speeddir == "up") {
Player_B._y -= speed;
}
if (dash == true) {
Player_B.gotoAndPlay("Bell_Fall");
dash = false;
}
keydown = false;
action = false;
unlocked = true;
}
if (Key.isDown(Key.SPACE)) {
if (keydown == false) {
Player_B.gotoAndPlay("Bell_Kick");
keydown = true;
action = true;
unlocked = false;
}
if (speed>minspeed) {
speed -= slspeed;
}
if (speed<0) {
speed = 0;
}
if (speeddir == "right") {
Player_B._x += speed;
}
if (speeddir == "left") {
Player_B._x -= speed;
}
if (speeddir == "down") {
Player_B._y += speed;
}
if (speeddir == "up") {
Player_B._y -= speed;
}
}
if (Key.isDown(Key.RIGHT) && action == false) {
if (keydown == false) {
if (curdird == true) {
Player_B.gotoAndPlay("Bell_Walk");
}
if (curdird == false) {
Player_B.gotoAndPlay("Bell_WalkAw");
}
keydown = true;
}
Player_B._xscale = 100;
if (unlocked) {
if (speed<maxspeed) {
speed += acspeed;
}
Player_B._x += speed;
speeddir = "right";
}
}
if (Key.isDown(Key.LEFT) && action == false) {
if (keydown == false) {
if (curdird == true) {
Player_B.gotoAndPlay("Bell_Walk");
}
if (curdird == false) {
Player_B.gotoAndPlay("Bell_WalkAw");
}
keydown = true;
}
Player_B._xscale = -100;
if (unlocked) {
if (speed<maxspeed) {
speed += acspeed;
}
Player_B._x -= speed;
speeddir = "left";
}
}
if (Key.isDown(Key.DOWN) && action == false) {
curdird = true;
if (keydown == false) {
if (curdird == true) {
Player_B.gotoAndPlay("Bell_Walk");
}
keydown = true;
}
if (unlocked) {
if (speed<maxspeed) {
speed += acspeed;
}
Player_B._y += (speed-vertspeed);
speeddir = "down";
}
}
if (Key.isDown(Key.UP) && action == false) {
curdird = false;
if (keydown == false) {
if (curdird == false) {
Player_B.gotoAndPlay("Bell_WalkAw");
}
keydown = true;
}
if (unlocked) {
if (speed<maxspeed) {
speed += acspeed;
}
Player_B._y -= (speed-vertspeed);
speeddir = "up";
}
}
playerX = Player_B._x;
playerY = Player_B._y;
if (playerY<225 && dash == false) {
Player_B._y = 225;
}
if (playerY>380) {
Player_B._y = 380;
}
if (back._x>=0 && Key.isDown(Key.LEFT)) {
back._x = -(back._width/2);
}
if (back._x<=-(back._width/2) && Key.isDown(Key.RIGHT)) {
back._x = 0;
}
if (playerX<100) {
Player_B._x = 100;
back._x += speed;
}
if (playerX>400) {
Player_B._x = 400;
back._x -= speed;
}
};
If you want a copy of the orignal flash file, just e-mail me, and i will send it to you, (its like 5 megs)
Added after 1 minutes:Also I wanted to say, that I am starting a new game, where you play as Zero in megaman stages.. because I love Zero, and think you should be able to play him at all the stages (lol, this is probably alot of work i am getting my self into)
_________________
Avatar is of Blak
Drawn by OHNHAI (based on drawing by Erix), Colored by Sepher0
Who is Blak?
Find out more here:
http://www.snafu-comics.com/forum/viewtopic.php?t=9680