: void main(void)
: {
: sp_base_walk(¤t_sprite, 220);
: sp_speed(¤t_sprite, 1);
: sp_brain(¤t_sprite, 16);
: }
: void talk(void)
: {
: say("Hello.", 1);
: wait(1000);
: say("'4Hi.", ¤t_sprite);
: }
: void hit(void)
: {
: say("stupid head!", ¤t_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(¤t_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.
: : void main(void)
: : {
: : sp_base_walk(¤t_sprite, 220);
: : sp_speed(¤t_sprite, 1);
: : sp_brain(¤t_sprite, 16);
: : }
: : void talk(void)
: : {
: : say("Hello.", 1);
: : wait(1000);
: : say("'4Hi.", ¤t_sprite);
: : }
: : void hit(void)
: : {
: : say("stupid head!", ¤t_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(¤t_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
I thought that 1 meant hard...a big thanks to everyone who helped me.