Game Development Community

GuiBitmapButton animation [solved]

by Rpahut · in Torque Game Builder · 07/09/2010 (10:00 am) · 2 replies

Could anyone please tell me how to name image files to get BitmapButton-family control animation on click and hover? It complains about missing files bitmapName.png_h, _d and _i, when these files are actually there. I'm unsure about appending these suffixes to the file extension, but that's how these filenames are printed in the console log.
Thanks.

#1
07/09/2010 (10:25 am)
Your files should be named "bitmapName_h.png", "bitmapName_d.png", etc.
#2
07/09/2010 (10:39 am)
Oh, GUI object desription for the BitmapButton must have 'bitmap' field assigned with the file name without extension - then it will be resolved to proper 'fileName_suffix.png' name.

PS
William, tryed that in the first place, but also had a problem with object desription file. Now it's working.
Thanks.