The Dink Network

Why... It's another dull script problem!!! (but don't let that stop you from helping me)

May 28th 2004, 09:25 AM
duck.gif
Ok, so the game closes itself in this part of the script. It's probably not good composed, but I just don't have enough experience. (sorry)

say_stop_xy("`1 And we're just in time to see his boss, Mr. Rockwell.", 10, 370);
int &boss = create_sprite(497, 389, 5, 341, 1);
sp_hard(&boss, 0);
sp_dir(&boss, 8);
sp_speed(&boss, 1);
move_stop(&boss, 8, 250, 1);

and when i try to make &boss say something, the text is placed in the upper left corner, and I don't know why:

say_stop("`5 Blablabla, I'm trying to speak", &boss);

hope you can help me (thx anyway)
May 28th 2004, 09:35 AM
spike.gif
You propably shouldn't give the boss brain 5
May 28th 2004, 12:52 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
int &boss = create_sprite(497, 389, 5, 341, 1);

Yes, the brain indeed shouldn't be 5. Here's what brain 5 does:

brain 5: When seq is done, kills but leaves last frame drawn to the background

So you should make it brain 9.

sp_hard(&boss, 0);

0 = hardness, 1 = no hardness - giving the boss (that is supposed to move) hardness won't work that well, so make it 1 instead of 0.

and when i try to make &boss say something, the text is placed in the upper left corner, and I don't know why:

say_stop("`5 Blablabla, I'm trying to speak", &boss);


That should be fixed by now.
May 29th 2004, 02:53 AM
duck.gif
It still crashes
I've reduced the script a little for now, but it crashes before the &boss is created.

freeze(1);
sp_dir(1, 2);
wait(300);
stopmidi("panter.mid");
wait(1000);
int &boss = create_sprite(497, 389, 9, 341, 1);
sp_dir(&boss, 8);
sp_speed(&boss, 1);
sp_hard(&boss, 0);
move_stop(&boss, 8, 250, 1);
May 29th 2004, 07:09 AM
knight.gif
legolas
Peasant He/Him
 
why giving stopmidi a command?
just stopmidi(); will do
May 29th 2004, 09:56 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
legolas is right for once in his life (thank go he posted a useful post).

only one midi can be playing at once in the dink engine, so it's just stopmidi();
May 29th 2004, 11:22 AM
duck.gif
nice
now you mention it, it seems very logical. (why does that happen evere time?)
I changed the script a bit, and now it works without any bugs. Once, once I'll be able to make a script by myself. hurrah for the dink network!