The Dink Network

Reply to Problem with walking monsters

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 24th 2009, 12:27 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
When I add a monster that I've created myself they seams to prefer walking in just two directions (7 and 3), wich make them look really wierd. I noticed this while makeing the 'members of the order' in 'the bomb' too, but I didn't really care about it. So, is there any way to solve this?

Here's the monsters script if it's anything wrong with it:

//Stone worm

void main( void )
{
int &mcounter;
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 1);
sp_distance(&current_sprite, 50);
sp_timing(&current_sprite, 33);
sp_exp(&current_sprite, 15);
sp_base_walk(&current_sprite, 860);
sp_base_death(&current_sprite, -1);
sp_defense(&current_sprite, 1);
sp_touch_damage(&current_sprite, 5);
sp_hitpoints(&current_sprite, 15);
preload_seq(861);
preload_seq(863);
preload_seq(867);
preload_seq(869);
preload_seq(865);
}

void hit( void )
{
playsound(29, 22050,0,&current_sprite, 0);

sp_target(&current_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound

}

void die( void )
{
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 6); 

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
//drops
external("emake","small");
spawn("drop-w");
}