Feral Heart
Help & Guidance => Game Help => Topic started by: Lawcere on November 16, 2011, 03:15:16 am
-
I'm trying a new preset for the November contest and so far all of my coding works, except for my second animated code.
The body has an animated (GIF) code as the base, then another animated code overtop, then a moving code on top of that. All files used are .PNG
My second "GIF" code glitches out at the end of its cycle; the small GIF will play through until the end, and then it will flash one frame that covers the entire body before restarting. Does anyone know why it does this?
-I'm not going to send you the coding I'm using because... it's a mile long, but I basically used the codes provided here:
http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.0 (http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.0)
-If having two animated codes won't work, I'll just combine them into one terribly long code.
Thanks,
-Law
-
is the body part or something a jpg image?
-
All textures used are PNG.
-
if you take a look at the code given for moving textures a certain texture must be jpg
-
The texture I'm having trouble with is not a moving texture, it's an animated one - one that changes.
-
I'm still having trouble with my animated code, can anyone help?
-
I looked closly at the code and noticed that not all images you use for it have to be a .jpg.
texture PresetBody1.jpg (IMPORTANT for Texture being jpg! This one is the Moving one, cant be transparent!)
tex_address_mode wrap
filtering trilinear
colour_op replace
scroll_anim 0.0 0.1
}
texture_unit
{
texture PresetBody.png (IMPORTANT for Texture being png! This one is the fixed, not moving. Can be transparent also!)
tex_address_mode wrap
filtering trilinear
colour_op alpha_blend
}
}
}
}
As you can see the first image used must be.jpg, where the second image must be a .png
Hope this helped! Good luck on the preset contest. :D
-
Yes, but that is the coding for a moving texture, while I am talking about one that changes through several different files, like a GIF. I suppose I could try changing my one animated code to .jpg instead of .png, see if it makes a difference anyway.