The Dink Network

Help!!!! My king turns into meat!!!!!!!!!!

August 17th 2008, 08:31 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
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
August 17th 2008, 08:35 AM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
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?
August 17th 2008, 08:44 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
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.
August 18th 2008, 02:18 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
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.
August 18th 2008, 05:45 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
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.
August 18th 2008, 08:09 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
u mean freezing them as i would in a script?
ex: freeze(&current_sprite);

or is there something to do it in windinkedit?? thanks a lot for your help. i really appreciate it.
August 18th 2008, 09:54 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Yeah, using freeze(&current_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.
August 28th 2008, 02:02 PM
farmer.gif
soulman
Peasant He/Him Bulgaria
I don't break rules.I bend them. 
That's nothing!One of my magic potions turns into a house