📧 Message Board Archive

my people still don't move...
I've done everything and my people still don't move. what do I do?
Re: my people still don't move...
: I've done everything and my people still don't move. what do I do?



Can you post your whole script so that people can pin point the problem easier?
Re: my people still don't move...
: : I've done everything and my people still don't move. what do I do?



: Can you post your whole script so that people can pin point the problem easier?



void main(void)

{

     sp_base_walk(&current_sprite, 220);

     sp_speed(&current_sprite, 1);

     sp_brain(&current_sprite, 16);

}      









void talk(void)

{

     say("Hello.", 1);

     wait(1000);

     say("'4Hi.", &current_sprite);

}



void hit(void)

{

     say("stupid head!", &current_sprite);

}            



that's a sample of a script, i hope you know where I'm messing up.
Re: my people still don't move...
: void main(void)

: {

:   sp_base_walk(&current_sprite, 220);

:   sp_speed(&current_sprite, 1);

:   sp_brain(&current_sprite, 16);

: }



: void talk(void)

: {

:   say("Hello.", 1);

:   wait(1000);

:   say("'4Hi.", &current_sprite);

: }



: void hit(void)

: {

:   say("stupid head!", &current_sprite);

: }



Nothing wrong here. In fact, I quickly used your script on a girl I put in, and she walked and responded correctly.



Still, the possible reasons that your people don't move are:



 1. hardness. Why don't you add a line of

sp_hard(&current_sprite, 1);

  to main(void)

 (I also suggest that you put the following in the beginning of main(void):



preload_seq(221);

preload_seq(223);

preload_seq(227);

preload_seq(229);



  It's not necessary, but sometimes it does matter.)

 2. sprite type. If you add your sprite with DinkEdit or DinkWinEdit, you should make sure it is normal type (type 1). Type 0 is background, and type 2 is invisible.

 3. You forgot to attach the script to the sprite. The name of the script you type in editer does not need the extention .c

 4. You did not put your script in the correct directory. It should be in a subdir in your dmod's directory.

 5. You somehow changed your Dink.ini file and sprite No. 221, 223, 227, and 229 were no longer in there.



If none of the above can solve your problem, then I'm all ears.
Re: my people still don't move...
: : void main(void)



: : {



: : sp_base_walk(&current_sprite, 220);



: : sp_speed(&current_sprite, 1);



: : sp_brain(&current_sprite, 16);



: : }



: : void talk(void)



: : {



: : say("Hello.", 1);



: : wait(1000);



: : say("'4Hi.", &current_sprite);



: : }



: : void hit(void)



: : {



: : say("stupid head!", &current_sprite);



: : }



: Nothing wrong here. In fact, I quickly used your script on a girl I put in, and she walked and responded correctly.



: Still, the possible reasons that your people don't move are:



:  1. hardness. Why don't you add a line of



: sp_hard(&current_sprite, 1);



:   to main(void)



:  (I also suggest that you put the following in the beginning of main(void):



:  preload_seq(221);



:  preload_seq(223);



:  preload_seq(227);



:  preload_seq(229);



:   It's not necessary, but sometimes it does matter.)



:  2. sprite type. If you add your sprite with DinkEdit or DinkWinEdit, you should make sure it is normal type (type 1). Type 0 is background, and type 2 is invisible.



:  3. You forgot to attach the script to the sprite. The name of the script you type in editer does not need the extention .c



:  4. You did not put your script in the correct directory. It should be in a subdir in your dmod's directory.



:  5. You somehow changed your Dink.ini file and sprite No. 221, 223, 227, and 229 were no longer in there.



: If none of the above can solve your problem, then I'm all ears.





I should have tried this earlier but I didn't. in windinkedit you can set hardness. so I figured that wasn't it. but it was it. it was the hardness. thanks mimi

Re: my people still don't move...
I thought that 1 meant hard...a big thanks to everyone who helped me.