Prowler Productions
  Dink Smallwood Forum
  My D-Mod is gimped, I need script help.

Post New Topic  
profile | register | faq

Author Topic:   My D-Mod is gimped, I need script help.
bdjnk posted 01-22- 08:00 AM CT (US)   Click Here to See the Profile for bdjnk   Click Here to Email bdjnk  
I have a script: key-66.c which is activated when one hits the b button. key-66.c says:

void main( void )
{
sp_base_walk(1, 850);
playsound(12, 8000,0,0,0);
}

inside dink.ini some of my walking graphics are loaded as so:

load_sequence_now graphics\dink\bwalk\ds-w1- 851 1 38 72 -14 -9 14 9
load_sequence_now graphics\dink\bwalk\ds-w2- 852 1 37 69 -13 -9 13 9
load_sequence_now graphics\dink\bwalk\ds-w3- 853 1 38 72 -14 -9 14 9
load_sequence_now graphics\dink\bwalk\ds-w4- 854 1 38 72 -12 -9 12 9

load_sequence_now graphics\dink\bwalk\ds-w6- 856 1 38 72 -13 -9 13 9
load_sequence_now graphics\dink\bwalk\ds-w7- 857 1 38 72 -12 -10 12 10
load_sequence_now graphics\dink\bwalk\ds-w8- 858 1 37 69 -13 -9 13 9
load_sequence_now graphics\dink\bwalk\ds-w9- 859 1 38 72 -14 -9 14 9

If all would go as I had planned it, pressing b (key-66.c) i would make my previosly loaded walking graphics come into use.

if i touch b (key 66) the whole game just shuts down. it will just chlick and the game shuts itself off like i quit.

I don't get it, someone help me understand.

Duck posted 01-22- 06:45 PM CT (US)     Click Here to See the Profile for Duck  Click Here to Email Duck     
I'm not sure if this will do anything, but have you tried commenting out the sound?
someone2 posted 01-22- 08:51 PM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
Run in debug mode (or just press ALT-D before pressing key66), press key66 then tell us what it says. It is likely it is a 'bad pic'.

Anyway, you should have a kill_this_task(); at the end of that.

Drakeman posted 01-23- 04:09 AM CT (US)     Click Here to See the Profile for Drakeman  Click Here to Email Drakeman     
Your load_sequence numbers seem strange...

You've got a 1 right after the sequence number (851... 853... etc) this should be the frame rate in millseconds not 1, like 50, or 75 - depending upon how many frames you have per sequence.

Did you just copy and past the SET_SPRITE_INFO stuff that DinkEdit created for you when you are calculating the new depth dot and hardness box for the new graphics?

bdjnk posted 01-23- 03:02 PM CT (US)     Click Here to See the Profile for bdjnk  Click Here to Email bdjnk     
I did do the calculation and then the copy and paste of the sprite info and I thought all the ones where odd as well.

maybe that is why some of my animation have stopped working after I edited their depth perception.

what I was trying to do was make dink walk backwards, very confusing.

Tamtur posted 01-23- 04:12 PM CT (US)     Click Here to See the Profile for Tamtur  Click Here to Email Tamtur     
I didn't test this, but could you just use sp_reverse? (it's in dinkc.txt) I don't know if this would work for the walk. Or if that didn't work, could you put the graphics in reverse order on a blank part of the sprites, like you would if you created a new monster? It seems like that would be easier and more foolproof.
bdjnk posted 01-23- 05:19 PM CT (US)     Click Here to See the Profile for bdjnk  Click Here to Email bdjnk     
I thought of that but what sp_reverse(); is play the sequence in reverse. If I applied it to every time It talks about him walking on the condition that key 66 was pressed, I would end up with dink facing the direction you told him to walk and moving in that direction only with his movements in backward order.

what I did with the graphics I edited was, renamed a pic of dink facing and walking one direction with the name of the corasponding pic walking in the opposite direction. I then renamed each of the pics so that each walking sequence was named 01 - 08 in the opposite order they started out as.

using these new pics i managed to get dink to walk backwards and it worked. the only prob came about when i tried to make hitting a key change the backward walk to forwards and vice versa.

once i hit the key (key-66) with the script i talk about above in it my game just shut down.

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.