Talking enemies questions
1. How do I make enemies say something (like 1 sentence) at random while they're moving around in screenlock?
2. I want Dink and the enemy have conversation before they engage in screenlocked battle. How do I do that?
2. I want Dink and the enemy have conversation before they engage in screenlocked battle. How do I do that?
Example:
Enemy script:
void main(void)
{
freeze(1);
freeze(¤t_sprite);
say_stop("Hey thanks man! You've killed milder!", 1);
say_stop("Now I will kill you!", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
Enemy script:
void main(void)
{
freeze(1);
freeze(¤t_sprite);
say_stop("Hey thanks man! You've killed milder!", 1);
say_stop("Now I will kill you!", ¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
1. E.g.
void main( void )
{
set_callback_random("blah",1000,5000);
}
void blah( void )
{
say_stop("I'll get u stupid scumhead!", ¤t_sprite);
}
2. Very simple. After creating the enemy, (if it's not placed in the screen by editor) just make the conversation before you init the enemy's brain, strength etc.
void main( void )
{
set_callback_random("blah",1000,5000);
}
void blah( void )
{
say_stop("I'll get u stupid scumhead!", ¤t_sprite);
}
2. Very simple. After creating the enemy, (if it's not placed in the screen by editor) just make the conversation before you init the enemy's brain, strength etc.