bool boatjump = false;
ffc script boat
{
void run()
{
ffc boat = Screen->LoadFFC(1);
ffc link2 = Screen->LoadFFC(2);
ffc water = Screen->LoadFFC(3);
ffc barrel
ffc ball = Screen->LoadFFC(7);
while(true)
{
Link->Action = LA_FROZEN;
if(Link->InputUp){
boat->Vy = 1;
link2->Vy = 1;
water->Vy = 1;
}
if(Link->InputDown){
boat->Vy = -1;
link2->Vy = -1;
water->Vy = -1;
}
int choice = Rand(3);
int choicey = Rand(9);
if (choice == 1) {barrel = Screen->LoadFFC(4);}
if (choice == 2) {barrel = Screen->LoadFFC(5);}
if (choice == 3) {barrel = Screen->LoadFFC(6);}
if (choicey == 1)
{
barrel->Y = 16;
barrel->Vx = -1;
}
if (choicey == 2)
{
barrel->Y = 32;
barrel->Vx = -1;
}
if (choicey == 3)
{
barrel->Y = 48;
barrel->Vx = -1;
}
if (choicey == 4)
{
barrel->Y = 64;
barrel->Vx = -1;
}
if (choicey == 5)
{
barrel->Y = 80;
barrel->Vx = -1;
}
if (choicey == 6)
{
barrel->Y = 96;
barrel->Vx = -1;
}
if (choicey == 7)
{
barrel->Y = 112;
barrel->Vx = -1;
}
if (choicey == 8)
{
barrel->Y = 128;
barrel->Vx = -1;
}
if (choicey == 9)
{
barrel->Y = 144;
barrel->Vx = -1;
}
}
}
}
This is want it needs to do:
FFC#1 is the boat and sail.
FFC#2 is "Link".
FFC#3 is the water behind the boat.
When up is pressed, ffcs 1 and 2 move up.
When down is pressed, ffcs 1 and 2 move down.
When left or right is pressed, nothing happens.
If A is pressed, the ffcs 1 and 2 jump.
3 types of obstacles will "move" to the left from a random position off the right side.
If one hits FFC#2, Link loses a heart.
FFC#4 will be used for the barrel/ice.
FFC#5 will be used for the whirlpool.
FFC#6 will be used for the cyclone.
Also, if Link has a cannon, the obstacles will appear less often and zoras will appear and shoot fireballs at FFC#2.
If B is pressed, the cannon fires.
FFC#7 will be used for the cannon ball.
After a few min. Link will warp to Dmap, screen.
The difficultly level increases as the game goes on.
It doesn't do anything.
I will owe whoever helps me with this a big favor.
Edited by Mega Link, 26 January 2008 - 01:51 PM.