intro
This is my first dmod, so sorry if this is a really dumb question, i have written and intro for my dmod, but i don't know how to get it to play when someone selects the begin new game button, i just don't really know what to type where to get the mod to recognise that theres an intro movie.
thanks if anyone could help with this
thanks if anyone could help with this
...
Just make the intro the opening screen to your d-mod...
Just make the intro the opening screen to your d-mod...
In your "Story" folder, you should have a script called, START. Go into this script and you can see what scripts are given to each sprite on the title screen. Typically, for starting a new game, this is START-1.
In this script are the variables for where on the map you start. If you have an intro film, attach it's script (With Void MAIN)to the screen where Dink starts.
Then upon starting the game, this script will be run.
But depending on how your intro work (black screen, tiled screen or whatever) it may need to be done a it differently.
I'm not very good at explaining these things... ask Simeon, he's good at this!
In this script are the variables for where on the map you start. If you have an intro film, attach it's script (With Void MAIN)to the screen where Dink starts.
Then upon starting the game, this script will be run.
But depending on how your intro work (black screen, tiled screen or whatever) it may need to be done a it differently.
I'm not very good at explaining these things... ask Simeon, he's good at this!
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
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

yeah thanks Simeon, i didn't even place the script in the map, heh, and made a few other mistakes, I also had to make a few maps twice. theres a movie at the start, with lets say beadroom1, then i remade the map for actual use in the game cause when i went into bd1, the4 movie would start up again. So this dmodwill be a little bigger than it should be and not as efficiently written as it could of been, but i don't think anyone will even be able to notice so it should work fine for this mod.
Just thank Simeon why don't you. I don't know why I bother.

I'm sorry sabre

Simeon's was the post that actually helped me, and i meant to add to the bottom a "~thanks everyone eles who posted" thing, but when i hit enter to start a new line it submited the reply and i didn't get to write that. And being the lazy person i am i didn't feel like posting again which is my lazy and rude fault.
And its also not like your post for help wasn'r good, it didn't help me but thats becuase i was very specific about what my problem was so you couldn't really know, hope this makes sense and i didn't screw up somewhere in writing it, also hope this dosen't ward you off trying to help ppl

Nah, don't worry about it man, my post wasn't much help. I thought I'd give it a go, but I'm not good at explaining things in exact detail like Simeon.
And I don't help people vey much anyway. I just give and take abuse. It's best for everyone that way.
And I don't help people vey much anyway. I just give and take abuse. It's best for everyone that way.