The Dink Network

Re: Frame delay

November 16th 2009, 10:18 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
How can I find the frame delay for animated tiles? I want to have a sprite which has the same time between frames as the tiles.
November 21st 2009, 11:54 PM
wizardg.gif
schnapper
Peasant He/Him Heard Island And Mcdonald Islands
Let us save our effort and just lie down and die. 
Would that be in the original script, by any chance?
November 22nd 2009, 02:25 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Probably not. Tiles don't have scripts, so this is probably hardcoded into the engine. Maybe someone with some knowledge about the dinkengine knows?
November 22nd 2009, 02:34 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
I don't know much about the frame delays, but which tiles are you talking about? The water tiles seem to be random, to me...
November 22nd 2009, 06:36 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Hmmm... I never thought the water tiles loooked all to random, but that might just be me. Anyway, I'm looking specifically for the fire tiles. I want to make it so that a part of the firetiles can disappear by removing a sprite that lookes like the tiles I'm interested in.
November 23rd 2009, 01:25 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
The water tiles are indeed random. The fire animation advances a frame every 100 'ticks'.

If you want to match your sprite's animation, either use SET_FRAME_DELAY in the dink.ini file to set it to 100, or use sp_frame_delay(&sprite,100);

Good luck!

(a sourcediver is me!)
November 24th 2009, 12:28 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
Seems like an interesting idea... I hope it works out well!