Basics - Character Interaction problem

  • #10, by zeebarfWednesday, 14. August 2013, 20:52 11 years ago
    Yes, I was assuming if anything it would stop on the last frame of the animation which would be the same as the static image. But seems to get caught in an endless loop no matter what.

    Newbie

    13 Posts


  • #11, by afrlmeWednesday, 14. August 2013, 21:02 11 years ago
    I'll ask David about it later on the night wink

    Imperator

    7278 Posts

  • #12, by zeebarfThursday, 15. August 2013, 00:12 11 years ago
    Thanks!

    In the meantime... ha, more questions!

    How does layering work? Does where it appear in the list of scene objects correspond to the actual layering? Or is it determined by the "object center"?

    I have two foreground elements that work right, but I added another scene element and for some reason the character keeps walking behind it. I have the "object center" at the base of the element. So I'm not sure what I'm doing wrong.

    So now I'm not sure if I even have the foreground working right? or if by default the character is always behind the elements because I didn't set it properly.

    Newbie

    13 Posts

  • #13, by SimonSThursday, 15. August 2013, 00:24 11 years ago
    For Items, the Image is used for the cursor if pick the item up, the animation is used for what you see in the inventory.

    You should click on the "Sort objects by object center" in order to have the layering working. Basicly all layers are drawn from bottom to top and the character is inserted if the object center is smaller than the character's position.

    Thread Captain

    1581 Posts

  • #14, by afrlmeThursday, 15. August 2013, 02:03 11 years ago
    For Items, the Image is used for the cursor if pick the item up, the animation is used for what you see in the inventory..


    the item animation settings screen has all the same options as the regular animations which is strange considering it's set to infinite loop regardless... I think a clean solution would be to make it only play animation on mouse over if infinite checkbox isn't selected.

    Imperator

    7278 Posts

  • #15, by zeebarfThursday, 15. August 2013, 03:57 11 years ago
    Ah ok, layering is fixed now! Thanks Simon.

    So for item animation, there's really no way to have it only play through the animation once? It'll always infinitely loop?

    Newbie

    13 Posts

  • #16, by NigecThursday, 15. August 2013, 14:04 11 years ago
    I think the last time I did it I make a condition to show the animation then set it to false on the last frame to hide it again and replace it with a static image

    Great to see you here! I was one of the testers on your 4 game I think it was

    Key Killer

    628 Posts

  • #17, by afrlmeThursday, 15. August 2013, 16:51 11 years ago
    I think the last time I did it I make a condition to show the animation then set it to false on the last frame to hide it again and replace it with a static image

    Great to see you here! I was one of the testers on your 4 game I think it was


    there are no action parts available to close/start the item animation but I believe we could use Lua to control it...

    we could run a check on mouse over to determine the items name & store it into a variable which we can use to control the animation.
    we can't stop the animation exactly as it won't let us restart it... but we can force the animation frame amount... hmm!

    I think I can write up a script to do what you are wanting, but I need to think about it a bit first...

    Imperator

    7278 Posts

  • #18, by afrlmeThursday, 15. August 2013, 20:36 11 years ago
    slight issue - I can't pull loop amount from the animation data as it seems to be set to "0" infinite, regardless of whatever loop value amount entered.

    also another issue is that animation tables are created for each item regardless of whether or not you actually add an animation - quick fix for this is to add an animation for each item or a single animation frame with the static image for any item you don't want to animate, with a high frame pause value like: 9999.

    if you wanted to create loop amounts then they could be added to a table...
    the way Item animations currently work is a major pain in the arse!

    Imperator

    7278 Posts

  • #19, by zeebarfThursday, 15. August 2013, 21:12 11 years ago
    Blarg, ah well. It's not the end of the world. It was just a minor polish detail.

    Thanks for the valiant effort!

    Newbie

    13 Posts

  • #20, by afrlmeThursday, 15. August 2013, 22:38 11 years ago
    I didn't say it wasn't possible! wink

    could you explain to me in some detail about exactly what you need it to do please?
    does it need to activate on mouse over or is it to play the animation when you add it to your inventory?

    if it's the latter one then as long as the final frame is the same as the static image then the script isn't overly complicated to make but the active on mouse over is a little more complicated as it involves creating tables to control loop amount or alternatively you could stop it animating on mouse out etc.

    Imperator

    7278 Posts