Author Topic: Still need help with my coding...  (Read 2382 times)

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Still need help with my coding...
« 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

-If having two animated codes won't work, I'll just combine them into one terribly long code.


Thanks,


-Law
« Last Edit: November 19, 2011, 10:42:22 pm by Lawcere »

Offline Wolfexpert79

  • Finest Floof
  • ***
  • Posts: 737
  • Floof-O-Meter: 45
  • I'm...shocked...T_T
    • View Profile
    • Gierra RPG Forum
Re: Can you help me with some preset coding?
« Reply #1 on: November 16, 2011, 03:40:54 pm »
is the body part or something a jpg image?

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Can you help me with some preset coding?
« Reply #2 on: November 16, 2011, 06:05:17 pm »
All textures used are PNG.

Offline Wolfexpert79

  • Finest Floof
  • ***
  • Posts: 737
  • Floof-O-Meter: 45
  • I'm...shocked...T_T
    • View Profile
    • Gierra RPG Forum
Re: Can you help me with some preset coding?
« Reply #3 on: November 16, 2011, 08:09:29 pm »
if you take a look at the code given for moving textures a certain texture must be jpg

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Can you help me with some preset coding?
« Reply #4 on: November 16, 2011, 10:07:20 pm »
The texture I'm having trouble with is not a moving texture, it's an animated one - one that changes.
« Last Edit: November 16, 2011, 10:33:36 pm by Lawcere »

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Can you help me with some preset coding?
« Reply #5 on: November 19, 2011, 09:10:58 am »
I'm still having trouble with my animated code, can anyone help?

Offline courtneyrc

  • Finest Floof
  • ***
  • Posts: 707
  • Floof-O-Meter: 68
  • courtneyrc
    • View Profile
    • courtneyrc on deviantART
Re: Still need help with my coding...
« Reply #6 on: November 20, 2011, 12:22:18 pm »
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

courtneyrc.deviantart.com

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Still need help with my coding...
« Reply #7 on: November 20, 2011, 08:39:00 pm »
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.