📧 Message Board Archive

SPIKE character (new hero, although he's actually bad)
I can't seem to get my character to work properly



He can so far walk in all directions properly, when you press to punch, you see Dink punching. I also found that when you try and PUSH with the new character, his sprite disappears completely. Can somebody provide some useful help with it. Here's my current script...



//when the start button is clicked



void main( void )

{

   int &crap;

}



void buttonon( void )

{

   sp_pframe(&current_sprite, 2);

   Playsound(20,22050,0,0,0);

}



void buttonoff( void )

{

   sp_pframe(&current_sprite, 1);

   Playsound(21,22050,0,0,0);

}



void click ( void )

{

   Say_xy("'% SPIKE - THE BEGINNING OF THE END... LOADING...", 0, 394);

   wait(1);



   &player_map = 1;

   sp_x(1, 550);

   sp_y(1, 200);



   sp_base_walk(1, 900);

   sp_base_idle(1, 900);

   //sp_base_attack(1, 100);

   set_mode(2);

   reset_timer();

   sp_dir(1, 4);

   sp_brain(1, 1);

   sp_que(1, 0);

   sp_noclip(1, 0);



   &strength = 5

   &defense = 5

   &magic = 5

   &gold = 2000

   &lifemax = 45;

   &life = &lifemax;

   &level = 15;

       

   add_item("item-fst",438, 1);

   &cur_weapon = 1;

   arm_weapon();

 

   fill_screen(0);



&update_status = 1;

draw_status();

 

   kill_this_task();

}



OK THEN



Here's the INI lines to it...



//SPIKE, DEAD SPIKE



load_sequence graphics\PEOPLE\SPIKE\SPIKE1- 901 100 50 68 -15 -5 17 18

load_sequence graphics\PEOPLE\SPIKE\SPIKE2- 903 100 43 68 -20 -13 25 13

load_sequence graphics\PEOPLE\SPIKE\death- 905 100 49 11 -45 1 16 36

load_sequence graphics\PEOPLE\SPIKE\SPIKE3- 907 100 51 70 -23 -14 21 9

load_sequence graphics\PEOPLE\SPIKE\SPIKE4- 909 100 40 70 -14 -11 19 8



HOPE YOU CAN HELP MA' OUT HERE
Re: SPIKE character (new hero, although he's actually bad)
:   //sp_base_attack(1, 100);:

:

:

:   add_item("item-fst",438, 1);

:



Although I didn't feel like to post anything or submit anything right now, I couldn't help but to say this: why don't you read Sabre's Alternative Heroes? You should be able to do your new heroes. :p



OK, here is the problem. I don't know why you comment out the attack sequence. How are you going to punch? The biggest problem is add_item("item-fst",438, 1); because your new hero will use Dink fist attack animation to do the attack even if you set sp_base_attack to other sequence. You need to rewrite a item-fst or something else for you to do the attack. Same with the magic scripts if there is going to be new magic...

Re: SPIKE character (new hero, although he's actually bad)
Thanks, that'll be handy
Re: SPIKE character (new hero, although he's actually bad)
To fix the attack seq, you have to set his sp_base_attck();



To fix this pushing seq, you must over write the sequences that dink uses to push with the new ones.

(i'd offer more help, but you called me nasty words on MSN and said Dink sucked and stuff)



--WC
Re: SPIKE character (new hero, although he's actually bad)
: To fix the attack seq, you have to set his sp_base_attck();

: To fix this pushing seq, you must over write the sequences that dink uses to push with the new ones.

: (i'd offer more help, but you called me nasty words on MSN and said Dink sucked and stuff)

: --WC



you can turn pushing off too. check out dinkc.txt or check out a script where dink turns into a duck or something.
Re: SPIKE character (new hero, although he's actually bad)
: : To fix the attack seq, you have to set his sp_base_attck();

: : To fix this pushing seq, you must over write the sequences that dink uses to push with the new ones.

: : (i'd offer more help, but you called me nasty words on MSN and said Dink sucked and stuff)

: : --WC

: you can turn pushing off too. check out dinkc.txt or check out a script where dink turns into a duck or something.



to disable pushing, use this command



push_active(0);



to activate,



push_active(1);

Re: SPIKE character (new hero, although he's actually bad)
: To fix the attack seq, you have to set his sp_base_attck();

: To fix this pushing seq, you must over write the sequences that dink uses to push with the new ones.

: (i'd offer more help, but you called me nasty words on MSN and said Dink sucked and stuff)

: --WC



WC lays the smack-down!



WOO!  GO WC!  SHOW NO MERCY!!



....



Woo!



...



woo..