The Dink Network

Reply to Re: intro

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 6th 2004, 08:01 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
I'm not very good at explaining these things... ask Simeon, he's good at this!

Ok, I'll explain the thing

In the Story directory of your D-Mod, you'll likely have the file Start-1.c, which is used for the Start button. Now, open it and go to the void click(void) part. Here you can set the starting screen and position of Dink (and thus where the game starts). For example, make it something like:

&player_map = 300;
sp_x(1, 200);
sp_y(1, 300);

to let the game start with Dink at mapscreen 300, x 200 and y 300. Now, you want to have the intro where the game starts so go to the mapscreen where the game starts and place a sprite there. Then attach a script to that sprite. To let the intro start, you'll need to place the intro in the void main(void) procedure (so it'll do that code when it gets to the screen). Here you can place all the code you want, like creating sprites and such.

And if you want to have the intro start at a black screen (with no sprites), you'll still have to place a sprite on the screen but you'll have to make it invisible. Then it's just the same; a script with the void main(void) procedure to put the intro code. To make a script invisible, set its type to 2 (in DinkEdit: click sprite, 2, 2, Enter and place it).

If you still have any questions, just ask