The Dink Network

2 questions

October 18th 2003, 01:26 PM
peasantmg.gif
Raven
Peasant He/Him Sweden
 
I have 2 questions.
1) I have a sprite and I want to edit it's hardbox. I do like this:
I choose the sprite. Press the E key and trim it's hardbox with the arrow keys. Then I press S and it's supposed to be saved in the ini file. I press escape and Q. But when I starts the editor again, the sprites hard box hasn't changed! What's wrong? (I have painted the sprite myself and I'm using the old editor, the one which is included with the MAIN game).

2) How do you change the tiles on a screen. For instance you have snow tiles on a screen and wants to change them to grass tiles when something happend in the game? How is this done?
October 18th 2003, 02:09 PM
custom_simon.gif
SimonK
Peasant He/Him Australia
 
Question 1 - you may well have passed the SET_SPRITE_INFO line number limit. Once you have more than a certain number (I forget how many) the Dink engine no longer uses the last ones. Check to see if you have any redundant lines by using some of the development programs - I think Paul Pliska's written one. If you have passed the cut off mark and you still need to edit hardboxes trying grouping your new graphics so that one sequence can use the same hard box, then you can define the hardbox once in the load_graphics line and save on SET_SPRITE_INFO lines for that entire sequence.

Question 2) I believe that redink1's revised version of the engine redink.exe v0.02 can do this via a new DinkC command [well his readme file says it can ] And since this version has a few other goodies I'd recommend using it. If you want to do it in the old engine you really duplicate that particular screen on another square and change the tiles, then use the script_attach(1000), &player_map = XX, code to move the player - if you don't do the fade_down and fade_up it appears to happen instanteously
October 18th 2003, 02:26 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
question 1: download Paul's "Ini Clean"

it's perfect!
October 18th 2003, 03:29 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Amen to that.
October 18th 2003, 03:49 PM
peasantmg.gif
Raven
Peasant He/Him Sweden
 
Ok, thanks! I will download that ini clean program.