Posted October 5, 201312 yr I made several 16x16 status icons and combined them with the regular player inventory picture like this: http://www.mediafire.com/view/tzoitwb3bojn368/inventory.png Then, I overide the setIconIndex method of my custom potion to coordinates as if the series of status icons in the inventory picture were a 2D array which means that setIconIndex(0,0) would return the speed icon and setIconIndex(2,1) would return the jump boost icon. However, when I try to set the icon to an icon that is to the right of the fire resistance icon, then, in game, it looks as if the icon was too far so the game looked for the leftmost icon on the next row. Here's an example of when I try setIconIndex(8,1) which is the brick-textured apple http://www.mediafire.com/view/989slbjdue3wy7b/2013-10-05_15.22.47.png So my question is, how would I display my custom status icons? Thanks for taking the time to read this =)
October 6, 201312 yr Author I fixed it by making a different image with my icons in the exact same coordinates of the image as the regular status effect icons, then I binded that image to the render engine.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.