The Dink Network

How do i create my own sprites?

July 22nd 2006, 12:38 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
My brother and I are trying to use sephiroth in our game, but we don't know how to create a sprite. Or is there another way? Can you please help us?
July 22nd 2006, 12:52 PM
anon.gif
Ace
Ghost They/Them
 
I think once you create a sprite, you need to add it to your dink.ini listing. Then it show show up as a sprite in WinDinkEdit or other tools that can add those sprites. You can also create a script that calls upon that sprite, once you know its number. This is am not too sure about as I have not made my own sprites yet, but from what I have been reading onthe forums here, it has to be in the dink.ini file first.
July 22nd 2006, 08:39 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
When i say "How do i create my own sprites?"I mean how do put pictures into your game.Me and my brother want to put sephiroth into our game but can't seem to get it right...we even tried putting cypry's picture
of himself.And we tried change the script but it didn't work. ...
July 22nd 2006, 09:09 PM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
Meh...

Anyone else remember the FF7 D-Mod from several years back that was supposedly actually killed off by Square?
July 22nd 2006, 10:05 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
umm tal if you dont mind me asking...what does that have to do with this post...
July 22nd 2006, 10:13 PM
anon.gif
Ace
Ghost They/Them
 
uhhh... you need to place them in a folder? and it has to be in BMP format palleted, 8bit, not 16bit or higher.

The folder that is an example of where to place it, would be:

C:/Program Files/Dink Smallwood/DMODname/graphics/foes/mymonstername/imagename.bmp

Thats if you want a monster, or if its a person, try this folder to save it:

C:/Program Files/Dink Smallwood/DMODname/graphics/people/mypersonsname/imagename.bmp

Hope this helps? O.o
July 22nd 2006, 11:08 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
it didnt...thanks for effort though.
July 23rd 2006, 04:30 AM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
The fact that you want to use Sephiroth, and Sephiroth is from Final Fantasy 7. I didn't figure the correlation was too far of a stretch, but then again..

Nevermind.
July 23rd 2006, 12:34 PM
pq_frog.gif
O ok
July 23rd 2006, 03:20 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
@Ace: that should be \, not /. / is only used for Unix-based systems and online stuff.

@Dude: I don't get it... You put the image in the image directory (or subdirectory in the image directory), then add the line in the INI and you should be set to use your sprite in the Dmod...

If you want to make your own sprite (as the topic title actually suggests), go look for some pixel art tutorials or other image creation tutorials.
July 23rd 2006, 03:49 PM
anon.gif
Ace
Ghost They/Them
 
I get them mixed up alot, the / and \ chars... when refering to a directory or webpage for that matter..... Lol
July 24th 2006, 04:23 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
You know how to add the .ini lines, right?
If not, open the dink.ini file from your dmod folder. Scroll it untill you reach the end. If you used a DMOD skeleton, you should see:

;----------------------------New stuff for this D-Mod goes here!!
;I've commented out lines so you can see how "new" things are added.
;You can deleted the lines that begin with a semicolon ; if you want.

Just right under this:
load_sequence_now graphics\[...]
where instead of [...] you should write the path to your graphic in your graphics folder.
July 25th 2006, 01:16 AM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
Cypry, i thanks, but now that i did that, how do i get to my sprite?
July 25th 2006, 02:53 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Well, if you typed the correct lines in dink.ini, you should just press "E" in WinDinkEdit, then PageDown, and you should see your graphics in the list.
July 25th 2006, 03:07 PM
spike.gif
kikki
Peasant He/Him United Kingdom
This place has changed :) 
don't you need to assign it to a number?
July 25th 2006, 03:53 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Well, I forgot to mention that after the pat, you should write
- 850
or whatever graphic slot you want to use. If your graphics are not animated, you should also write NOTANIM after.
If they are animated... hmmm... you have to write some nubers... something like this:
75 82 91 -23 -10 26 17
the first number represents the speed of your animation;
the next two, the center coordinates;
the next two the top-left corner of the hardbox;
and the last two ones the down-right corner of the hardbox.

Usually, a graphic pack is provided with these. If not... I can only say good luck writing them yourself
July 25th 2006, 03:57 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Kikki's right, after you put the folder name you have to put in a free sequence number. Like:

load_sequence_now graphics\mything- 800

800 is just an example, I don't really know if that sequence is free for use. Just so a search in the dink.ini for that number and if it can't find anything, it's free.
July 25th 2006, 05:23 PM
pq_frog.gif
So would this be correct?

load_sequence graphics\foes\sephiroth\seph1- 430 NOTANIM
July 25th 2006, 05:38 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Well, NOTANIM declares that these frames are not to be animated (according to DinkC reference).

Actually, I just found something that will greatly help you. Open the DinkC reference 4.0, and do a search for "notanim" (without the quotes). The page that you find will help you set up your graphics in Dink!
July 25th 2006, 06:58 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
I did that, but my sprite image isn't showing up. It's extremely frustrating.
July 26th 2006, 01:39 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
If you are using v1.07 or below, are you sure the graphic you are using is in 256 color? If not, either convert it, or use the true color option in 1.08.
July 26th 2006, 02:18 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
im using 1.08 in true color
July 26th 2006, 07:10 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
I have exactly the same problem as you thedude
July 26th 2006, 10:15 PM
duckdie.gif
codifex
Peasant He/Him
 
First, if your using
load_sequence graphics\foes\sephiroth\seph1- 430
the images must be named like so:
seph1-01.bmp (the first frame)
seph1-02.bmp (the second frame)
etcetera, for all your frames.

If that isn't the issue, and windows is hiding the file ending from you, it is possible that the files are actually named seph1-01.bmp.bmp and Dink will not find them. To check this, right click the image and select properties to see what the real full file name is.

Yet a third possibility comes to mind... Dink is a little odd with filenames greater than 8 chars long, perhaps it true of folder names as well. Try using:
load_sequence graphics\foes\sephir\seph1- 430

Best o' luck, I know how frustrating this stuff can be.
July 27th 2006, 12:09 AM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
Ok you are all really helpful but for some reason we have an outlined blue frame but nothing shows up in it...
July 27th 2006, 05:09 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Yeah that's happen to me too.
July 28th 2006, 02:20 AM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
If your graphic isn't 256 colors, WinDinkEdit won't display it.
Try to attach this script to a sprite in the screen:

void main(void)
{
preload_seq(850);
create_sprite(100,100,0,850,1);
}

where instead of 850, write your graphic slot(850 is the first one free).

Start the game, enter that screen, and you should see your graphic. If you can see it, it means it's not 256 colors. If you can't... keep bugging this forum.
July 28th 2006, 12:39 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
It wasn't in 256 colors, So I switched it to it, but the image still didn't show up.
July 28th 2006, 02:28 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
So you were able to see it in the game? If yes, you must convert these graphics in 256 colors.
July 28th 2006, 02:45 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
No, it didn't show up in the game or in my sprite inventory.
July 29th 2006, 03:33 AM
anon.gif
Ace
Ghost They/Them
 
ThaDude,

Have you tried posting the code thats not working here? Please show us what code your using, and tell us where you are saving the file at and what format your using and colors used. eg (BMP, 256 colors, and its resolution size)

Then tell us what your trying to to with this graphic to better understand your problem. Try to be as detailed as possible. Becuase it seems like everyone has ran through the whole bit pretty much of what is needed done, should not have any problems really. But please be mroe specific on what your wanting, how your wanting, what you got, and available code that references to that image your trying to show in dink, and I bet someone can figure it out for you quicker.

I mean, this post has been going on for days, and yet your still having trouble, I figure you would of figured it out by now, or someone would be able to help you a bit quicker. This is the only reason I say try to be as specific as possible so others here will understand the exact problem, instead of running this forum down a list of possible awnsers to your problems.
August 2nd 2006, 01:41 PM
pq_knight.gif
ThaDude
Peasant He/Him United States
"WHAT IS STFU?! " - VaultDweller 
You know what, my little brother was pissed off and decided to delete the d-mod. Lesson learned, from now on i work on my own d-mods. Thanks for all of your help. I will use it for future reference.