The Dink Network

Colours in graphics

December 21st 2005, 03:11 AM
dragon.gif
hey, i've made a graphic (or sequence to be exact) and i need to make that graphic, it's a man, to have a different colour on his clothes, from blue too green,

you get it i guess...

but i only have MSPaint, how shall i do?
December 21st 2005, 05:16 AM
custom_carrie2004.gif
carrie2004
Peasant She/Her Canada
*chomp* 
Try downloading Irfanview.It's free and easy to use.clicky clicky.
December 21st 2005, 06:59 AM
dragon.gif
thanks, i'll try it!
December 21st 2005, 07:05 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Or you could try Dimage to tint the image. I'm not sure exactly what colors are available, though.
December 21st 2005, 07:12 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
gray, blue, red, green, yellow, cyan and magnenta if I'm correct.
December 21st 2005, 07:43 AM
dragon.gif
which one of them is avtually best?
December 21st 2005, 07:48 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
IrfanView will be able to edit your colours very extensively, while Dimage just has some colour presets. I recommend downloading both, actually.
December 21st 2005, 07:49 AM
dragon.gif
brhm...

the DImage only extracts files that can't be opened with paint...
December 21st 2005, 09:47 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
you could use that image enhance program that's in my dev toychest, that's what i use for a lot of my graphics. i haven't tried using irfanview for that, so i don't know, it may or may not be as good.
December 21st 2005, 10:21 AM
dragon.gif
thanks, nothing works wery well, so i'll try it rabidwolf...
December 21st 2005, 01:43 PM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
RabidWolf's tool may be very good (I haven't tried it), but DImage is pretty poor, in my opinion. Irfranview, whilst far from perfect, is a very useful program.

Good luck.
December 21st 2005, 01:47 PM
dragon.gif
well, i've used them all, and here comes the winner...

Rabidwolf9's tool-thingy!

it's the only one easy to use and it's atleast WORKING!
December 21st 2005, 02:14 PM
dragon.gif
BWAHUM!

scuse' me but i have another problem, with one of my spell scripts, when i equip the magic, the D-mod inverts colours and shut's itself off!

here's the script:

//item fireball

void use( void )
{

&mydir = sp_dir(1, -1);

//disallow diagonal fireballs for now

if (sp_dir(1, -1) == 1)
sp_dir(1, 4);
if (sp_dir(1, -1) == 3)
sp_dir(1, 6);
if (sp_dir(1, -1) == 7)
sp_dir(1, 4);
if (sp_dir(1, -1) == 9)
sp_dir(1, 6);

&basehit = sp_dir(1, -1);
&basehit += 320;

sp_seq(1, &basehit);
sp_frame(1, 1); //reset seq to 1st frame
sp_kill_wait(1); //make sure dink will punch right away
sp_nocontrol(1, 1); //dink can't move until anim is done!
&magic_level = 0;
draw_status();
&mholdx = sp_x(1, -1);
&mholdy = sp_y(1, -1);
//freeze(1);

wait(100);

if (&mydir == 1)
{
&mholdx -= 30;
&junk = create_sprite(&mholdx, &mholdy, 11, 504, 1);
sp_seq(&junk, 504);
sp_mx(&junk, -6);
sp_my(&junk, +2);

}

if (&mydir == 4)
{
&mholdx -= 30;
&junk = create_sprite(&mholdx, &mholdy, 11, 504, 1);
sp_seq(&junk, 504);
sp_dir(&junk, 4);
}

if (&mydir == 6)
{
// &mholdy -= 10;
&mholdx += 30;
&junk = create_sprite(&mholdx, &mholdy, 11, 506, 1);
sp_seq(&junk, 506);
sp_dir(&junk, 6);
}

if (&mydir == 3)
{
&mholdx += 30;

&junk = create_sprite(&mholdx, &mholdy, 11, 506, 1);
sp_seq(&junk, 506);
sp_mx(&junk, +6);
sp_my(&junk, +2);

}

if (&mydir == 2)
{
&junk = create_sprite(&mholdx, &mholdy, 11, 502, 1);
sp_seq(&junk, 502);
sp_dir(&junk, 2);
}

if (&mydir == 7)
{
&mholdx -= 30;
&junk = create_sprite(&mholdx, &mholdy, 11, 504, 1);
sp_seq(&junk, 504);
sp_mx(&junk, -6);
sp_my(&junk, -2);

}

if (&mydir == 8)
{
&junk = create_sprite(&mholdx, &mholdy, 11, 508, 1);
sp_seq(&junk, 508);
sp_dir(&junk, 8);
}

if (&mydir == 9)
{
&mholdx += 30;
&junk = create_sprite(&mholdx, &mholdy, 11, 506, 1);
sp_seq(&junk, 506);
sp_mx(&junk, +6);
sp_my(&junk, -2);

}

//create fake shadow effect
playsound(17, 8000,0,&junk,0);

sp_timing(&junk, 0);
sp_speed(&junk, 6);
sp_strength(&junk, 10);
sp_range(&junk, 10);
//this makes it easier to hit stuff
sp_flying(&junk, 1);
sp_script(&junk, "dam-fire");
//when the fireball hits something, it will look to this script, this way
//we can burn trees when appropriate
&mshadow = create_sprite(&mholdx, &mholdy, 15, 432, 3);
sp_brain_parm(&mshadow, &junk);
sp_que(&mshadow, -500);
//will be drawn under everything

//set fireball to not be able to damage Dink or the shadow
sp_brain_parm(&junk, 1);
sp_brain_parm2(&junk, &mshadow);

unfreeze(1);
}

void disarm(void)
{
&magic_cost = 0;
kill_this_task();
}

void arm(void)
{
Debug("Preloading fireball");

int &basehit;
int &mholdx;
int &mholdy;
int &junk;
int &mshadow;
int &mydir;
&magic_cost = 40;
preload_seq(322);
preload_seq(324);
preload_seq(326);
preload_seq(328);
preload_seq(502);
preload_seq(504);
preload_seq(506);
preload_seq(508);

//tree burn
preload_seq(20);

//explosion
preload_seq(70);
}

void pickup(void)
{
Debug("Player now owns this item.");
kill_this_task();
}

void drop(void)
{
Debug("Item dropped.");
kill_this_task();
}

What's wrong?
December 21st 2005, 06:09 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Um... weird. If you're using 1.08, try using 1.07 and earlier. If the problem is unique to 1.08, could you send me a copy of your D-Mod so I can test it?
December 22nd 2005, 02:51 AM
dragon.gif
Where do i check my version of Dink?
December 22nd 2005, 06:33 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
On the title screen, it should have some text near the bottom that says something like "v1.08" or "v1.07"
December 22nd 2005, 01:25 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
when i equip the magic, the D-mod inverts colours and shut's itself off!
I had this problem when working on a spell too. I had to press the restart button. Then I checked the script, fixed something and it worked. The script was doing something like this:

loop:
blah...blah...blah...
if(....) goto loop;

I fixed it doing this:
loop:
wait(5);
blah...blah...blah...
if(....) goto loop;
December 22nd 2005, 02:30 PM
dragon.gif
ehrm...

ooooookay...

what an *excellent* explanation!

BTW: i still have 1,06
December 22nd 2005, 02:36 PM
dragon.gif
i can't find the loop: thingy...
December 22nd 2005, 03:59 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Oh, yeah, I think &magic_cost has to be at least 100... I should have caught that earlier.