Why... It's another dull script problem!!! (but don't let that stop you from helping me)
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)
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)
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.
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.
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);

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);
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();
only one midi can be playing at once in the dink engine, so it's just stopmidi();