The Dink Network

Sprites

April 4th 2005, 03:48 PM
knightgl.gif
Hi
How do you edit hardness in sprites

and what does the star mean?
April 4th 2005, 04:23 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
You can edit the hardness of sprites by manipulating the ini file in your D-Mod directory or by pressing E various times in the sprite selection part of DinkEdit, then you can set the dot and the box of hardness.

The star means you're a Peasant here, which is basically everyone minus the staff.
April 5th 2005, 02:38 AM
knightgl.gif
ah...thanks, sorry but i've got another question if i wanted to have 3 things talk (dink and two people) how would i do that, because i know &current_sprit and 1 for 2 people but not the third

EDIT: and now i have a major problem, my game after the loading screen (esplash.bmp), reverts to the desktop but its fine with other DMODs
April 5th 2005, 06:44 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
For dink, it's 1.
For the current sprite, it's &current_sprite.
For anything else:

int &crap = sp(25);
say_stop("Text!", &crap);

You can use a variable to hold a sprite's number and then use that in the say_stop command.
April 5th 2005, 08:16 AM
knightgl.gif
thanks but i'm still stuck with the second problem
April 5th 2005, 12:13 PM
wizardg.gif
Chaotic
Peasant He/Him
 
Is it loading a MIDI or graphics that aren't in the gfx or sound dir?
April 5th 2005, 01:42 PM
knightgl.gif
i replaced the main.c start.c etc files and rewrote them and now it works but now some of the DMODs aren't appearing in the FrontEnd app

EDIT:Fixed
April 5th 2005, 02:09 PM
knightgl.gif
if i edit the hardness on sprites, although the changes are saved to dink.ini ( i think )i can till walk though it
April 5th 2005, 02:27 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Aww. Make sure the Dink Walk mode isn't no-obstruction. (sorry, I'm new to DinkC...)

(That sounded stupid, didn't it?)
April 5th 2005, 03:35 PM
knightgl.gif
how do i do that, i remember reading about it, i will check the stuff i have on my other pc(the one with Dink)
(That sounded stupid, didn't it?) (no, not really)
April 5th 2005, 03:46 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
move_stop(1, 2, 100, 1);

The second "1" allows Dink to walk through hardness.
April 6th 2005, 01:54 AM
knightgl.gif
where do i put this and also if i press space to show hardness in dinkedit the sprites hardness i've edited doesn't appear
April 6th 2005, 07:52 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Well, you put that line in a script just where you want Dink to move to a location, not specifically somewhere but in cutscene you can use that for example.

As for the hardness not appearing, it could be that the sprite has its hardness set to 1, meaning no hardbox so you also don't see it when you press space. I think it was 9 in DinkEdit to change the hardness, set it to 0 and you should see the hardbox near the sprite.
April 6th 2005, 09:07 AM
knightgl.gif
thanks for the second thing but about the first what about when being controlled by keyboard not in a cut scene
April 6th 2005, 09:11 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Generally, when would you want Dink to be able to walk through hardness object by default outside cutscenes? If Dink should be able to walk through an object that looks solid (like a house/table/giant boulder), give it no hardness and Dink can walk through it instead of giving everything hardness and then let Dink walk through hardness.
April 6th 2005, 10:10 AM
knightgl.gif
i don't want to be able to but my sprites are
hard (i think) and i can walk though them
April 6th 2005, 10:13 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
If you can walk through them, they likely have a hardness set to 1 (whichs means no hardness). Set that to 0 and there's hardness - the 0 and 1 may seem contradicting but 0 means hardness and 1 means no hardness.
April 6th 2005, 10:15 AM
knightgl.gif
ok thanks i'll try that
BTW the Dink chat room is open check my post in General Disscusion
April 6th 2005, 10:30 AM
knightgl.gif
YYYEEESSSS!! it works, thanks