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(¤t_sprite, 2);
Playsound(20,22050,0,0,0);
}
void buttonoff( void )
{
sp_pframe(¤t_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
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(¤t_sprite, 2);
Playsound(20,22050,0,0,0);
}
void buttonoff( void )
{
sp_pframe(¤t_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