Help!!!! My king turns into meat!!!!!!!!!!
Hey guys in my dmod i add a sprite for king daniel and during gameplay he turns to meat!! please help!! i need him to be a talking sprite. this also happens with the fairy sprite... it turns invisible somewhere in the game.. thanks
HEY! Don't double post! Just post once...Double posting doesn't help to reply to you quickly.About you problem did you saved your d-mod while editing?
Hello
The king aren't animated, it's just one BMP. Do you create the king by a script or place him with the editor? If you're creating him by script it's possible that you've selected the wrong frame that will show up in the game. Let me give you an example.
//creating the king
int &king = create_sprite(322, 136, 0, 421, 31);
You see that last number, 31? That's the king’s frame. Your king is probably meat because you have set the frame to 1, instead of 31.
By the way, remember that he's not animated so you shouldn't use sp_base_walk(); for example.
Hope this helps.
The king aren't animated, it's just one BMP. Do you create the king by a script or place him with the editor? If you're creating him by script it's possible that you've selected the wrong frame that will show up in the game. Let me give you an example.
//creating the king
int &king = create_sprite(322, 136, 0, 421, 31);
You see that last number, 31? That's the king’s frame. Your king is probably meat because you have set the frame to 1, instead of 31.
By the way, remember that he's not animated so you shouldn't use sp_base_walk(); for example.
Hope this helps.
Yeah my script is exactly as u've said and he is a king for one sec then he turns into meat!! so when dink is talking to him, whoosh the king turns into meat and starts talking back. It's pretty funny, u know. Anyway it happens with all of my static sprites. for instance i put some sprites in the bar and just wanted them to say a few things without moving, but u can notice every now and then that they move as if they are uncomfortable in their seats, like fidgitting around! It's wierd bec i have their brains as 16 but no base walk or speed is assigned.
Have you given your King a brain too? If so, you should change it to 0.
Your sprites are probably restless because you've set their brain to 16, and not frozen them.
If they're not supposed to walk at all, they don’t need a brain either (not even other info, like set_base_walk). Try to change their brains, or freezing them.
Your sprites are probably restless because you've set their brain to 16, and not frozen them.
If they're not supposed to walk at all, they don’t need a brain either (not even other info, like set_base_walk). Try to change their brains, or freezing them.
u mean freezing them as i would in a script?
ex: freeze(¤t_sprite);
or is there something to do it in windinkedit?? thanks a lot for your help. i really appreciate it.
ex: freeze(¤t_sprite);
or is there something to do it in windinkedit?? thanks a lot for your help. i really appreciate it.
Yeah, using freeze(¤t_sprite) after the void main should make them stand still.
You could place the sprite with windinkedit, and attach the script to it... Then you don't need to give it a brain or base walk etc.
But I would recommend that you create them by script actually.
You could place the sprite with windinkedit, and attach the script to it... Then you don't need to give it a brain or base walk etc.
But I would recommend that you create them by script actually.