Inventory animation working, but Inventory static image staying

  • #1, by nicholas-chanWednesday, 21. October 2020, 13:01 3 years ago
    Hi there,

    I was wondering if someone could help me with my inventory system. My inventory is animated and I'd like that to play only, but it seems I've got both the inventory animation and the inventory static image playing at the same time right now and I can't get rid of the static image.

    I have my animation as a button on my button list, and when the mouse hovers over the bottom of the screen, I have an object area that has the actions, show inventory and play animation. I'm not sure how I get rid of the static image of the inventory here, could someone help me out here?

    Thank you very much.

    ~Nick

    Newbie

    21 Posts


  • #2, by afrlmeWednesday, 21. October 2020, 13:18 3 years ago
    Based on what you just wrote it sounds like you are manually calling a custom animation linked to an interface button rather than using the animation section inside of the item section of the editor.

    Quick note #1: you can update the animation frame range with Lua script, which means that essentially you can force it to play a single frame or loop/play through a specific range of frames. I'll leave out an example of how to do that for now, because I don't know if you are wanting to have them always animated, or only when you hover the mouse cursor over an item. Anyway, for always animated just create animations for your items & don't add a static image - actually either way, you don't need a static image.

    Quick note #2: if you are using the dragged item system, it will use the same images/animations belonging to the item being dragged which means that if the inventory is open/visible that the dragged item cursor & inventory counterpart will look exactly the same.


    Imperator

    7278 Posts

  • #3, by nicholas-chanWednesday, 21. October 2020, 13:55 3 years ago
    Hey afrlme,

    First of all, thanks for such a quick response!

    I think I need to clarify that these animations are not for the specific slots in the inventory, but for the entire inventory background. So I'm not sure whether I'd want to use the animation section inside of the item section in the editor here? And yes, it is a looped constant animation for whenever the inventory is shown.

    It's particularly strange because I've deleted the background image in the settings for the inventory interface, but it still pops up in the editing window.

    Newbie

    21 Posts

  • #4, by esmeraldaWednesday, 21. October 2020, 14:33 3 years ago
    My inventory is animated and I'd like that to play only, but it seems I've got both the inventory animation and the inventory static image playing at the same time right now and I can't get rid of the static image.
    How about using a transparent image for the static image?
    You need a background image for your inventory else the slots for the items won't register. (at least this was the case last time I tried) So the image has to be big enough to cover your slots, but it can be completely transparent.


    Key Killer

    513 Posts