Monday, 15 December 2008

Ooh!! It works!!

Right, I have recorded a cutscene for testing, then one part of the battle. Remember, this is not the final cutscene I'm gonna use. It's just for testing out my MCS script.

Here's the script:

setCamPos,-100,-100,32;
crObject,1,0,0,0,0;
wait,30;
trackObject,1,0,0,0;
wait,30;
moveObject,1,800,600,52,300;
wait,60;
dialogName,Mr Ball;
dialog,Testing....123;
wait,30;
fade,0,0,0,0,30;
wait,20;
mp3,0,0;
wait,8;
endCutscene;

and here's what the script did:



Ah!! Progress!

Oh, the heads up display isn't finished yet. But the battle is! See the red flashes? It means Mr Ball terkena critical hit! Well, there's still a lot more to do for the cutscene system.

I've added more commands:
dialog -> Displays a dialog
dialogName -> Specifes the name that will be displayed at the top of the dialog
dsObject -> Destroys (delete) an object
fade -> Creates the fade in/out effect
mp3 -> Plays an MP3 defined in the MP3 list
moveCamArc -> Move the camera in an arc
moveCamSpiral -> Move the camera in a spiral

Totaling up to 22 commands altogether.

The last 2 commands are based on this post.

I've got to say, the Cutscene system got to be the Greatest thing in Mr Ball's history. It's actually more fun to play with the system than making the game. But, I've to continue with the game, so, I shall get on to it. haha.

EDIT:

Ok, finally, the cutscene is finished. Well, the first one at least. Can finally get on to the game making. Here's the final script and the cutscene:


crObject,1,0,16,300,0;
crObject,2,1,600,300,160;

//Keep the diamond rotating
rotateObject,2,2,999999,999999;

setCamPos,128,400,48;
trackObject,1,0,0,16;
moveObject,1,200,300,0,120;

wait,121;

dialogName,Mr Ball;
dialog,Where am I? What am I doing here?
dialogName,???;
dialog,Mr Ball, I presume?
dialogName,Mr Ball;
dialog,Huh??

crObject,3,2,200,300,16;
lockOnObject,3,0,0,0;
moveObject,3,600,300,176,120;

wait,121;

stopLock;
dsObject,3;
lockOnObject,2,0,0,16;
moveObject,2,500,300,0,120;

wait,121;
lockOnObject,1,0,0,16;
dialog,What are you still doing here? I thought I've eliminated you.
lockOnObject,2,0,0,16;
setCamPos,100,350,32;
dialogName,Black Diamond;
dialog,You think so, eh? Well, too bad then. I am back now!!
dialogName,Mr Ball;
dialog,What do you want from me anyway?
dialogName,Black Diamond;
dialog,Huh! you have you ask?

fade,1,255,255,255,10;
setCamPos,400,300,16;
moveCam,450,300,16,10;
wait,11;
dialog,I want to erase your existence from this world!

mp3,0,0;
wait,10;

moveCamSpiral,500,300,0,32,135,720,600,1;
setCamSpeed,2,0.5;

crObject,3,3,490,282.68,256;
crObject,5,3,490,317.32,256;
crObject,7,3,520,300,256;

crObject,4,3,480,300,386;
crObject,6,3,510,317.32,286;
crObject,8,3,510,282.68,286;

triggerEvent,3,4;
triggerEvent,4,34;
triggerEvent,5,4;
triggerEvent,6,34;
triggerEvent,7,4;
triggerEvent,8,34;

rotateObject,3,2,9999,3333;

moveObject,3,490,282.68,2,21;
wait,9;
moveObject,4,480,300,32,21;
wait,9;
moveObject,5,490,317.32,2,21;
wait,9;
moveObject,6,510,317.32,32,21;
wait,9;
moveObject,7,520,300,2,21;
wait,9;
moveObject,8,510,282.68,32,21;
wait,9;
fade,0,0,0,0,30;
wait,29;
endcutscene;


There has been a slight change in the syntax. # symbol is no longer the symbol for comments. Instead, use the double slash symbol, \\.

The "dialog" command is parsed differently, so you don't need to place the semi-colon at the end of the line.

0 comments: