The Dink Network

Dink Cut-scenes

May 23rd 2008, 10:27 AM
wizardg.gif
Schnapper
Peasant He/Him Heard Island And Mcdonald Islands
Let us save our effort and just lie down and die. 
Huzza! I'm a bit noob to D-modding and I need help: how on Sam-hill do I make A decent cut-scene? I'm thinking in-game type, not 3D movie or text-and-pictures type.
Help=appreciated highly.
May 23rd 2008, 11:04 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
A simple cutscene can be made using very basic DinkC commands. So you could use the say(); and move(); commands to make a primitive cutscene already.

For example these lines of code will first freeze Dink, then make Dink say someting and walk down (to <newy> which hasn't been defined yet...), finaly we'll unfreeze him so he can continue doing what he wants:

freeze(1);
say_stop("Wow I'm saying something",1);
move_stop(1,2,<newy>,1);
unfreeze(1);

instead of 1 (which is Dink) you could also use other sprites. For example &current_sprite, which is the sprite to which the script is attached to, so you could do something like this:

freeze(1);
freeze(&current_sprite);
say_stop("Hi there, sprite!",1);
say_stop("`7Welcome Dink",&current_sprite);
unfreeze(1);
unfreeze(&current_sprite);

So as you see, it works just like in-game. The difference is that in a cutscene you often don't have a suitable &current_sprite to work with. So let's create a new sprite!

freeze(1);
int &sprite;
&sprite = create_sprite(x,y,brain,pseq,pframe);
say_stop("Nice weather isn't it?",&sprite);
say_stop("Nah, it's better outside...",1);
unfreeze(1);

In the above example I defined a new variable (which is &sprite). To this variable I attached a sprite, so I can use the &sprite variable to make this sprite talk, walk or whatever I want it to do.

So that should be enough to make your first cutscenes...

Oh, and one final comment: If you like a sprite to move make sure it has a speed value higher than 0. It might sound stupid but many people (including me) tend to forget it sometimes. (You can set the speed with the sp_speed(); command)
May 24th 2008, 05:54 AM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
Thanks metatarasal, that was rather informative. Even though I have read much of the help and tutorial files, I found this bit of scripting to be of use to me in my upcoming D-mod. Thanks again.
May 25th 2008, 01:31 AM
wizardg.gif
Schnapper
Peasant He/Him Heard Island And Mcdonald Islands
Let us save our effort and just lie down and die. 
Ja. thanks for dat.