Basics - Character Interaction problem

  • #10, von zeebarfMittwoch, 14. August 2013, 20:52 Uhr vor 12 Jahren
    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.

    Neuling

    13 Posts


  • #11, von afrlmeMittwoch, 14. August 2013, 21:02 Uhr vor 12 Jahren
    I'll ask David about it later on the night wink

    Foren Imperator

    7285 Posts

  • #12, von zeebarfDonnerstag, 15. August 2013, 00:12 Uhr vor 12 Jahren
    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.

    Neuling

    13 Posts

  • #13, von SimonSDonnerstag, 15. August 2013, 00:24 Uhr vor 12 Jahren
    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 König

    1582 Posts

  • #14, von afrlmeDonnerstag, 15. August 2013, 02:03 Uhr vor 12 Jahren
    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.

    Foren Imperator

    7285 Posts

  • #15, von zeebarfDonnerstag, 15. August 2013, 03:57 Uhr vor 12 Jahren
    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?

    Neuling

    13 Posts

  • #16, von NigecDonnerstag, 15. August 2013, 14:04 Uhr vor 12 Jahren
    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

    Tastenjunkie

    636 Posts

  • #17, von afrlmeDonnerstag, 15. August 2013, 16:51 Uhr vor 12 Jahren
    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...

    Foren Imperator

    7285 Posts

  • #18, von afrlmeDonnerstag, 15. August 2013, 20:36 Uhr vor 12 Jahren
    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!

    Foren Imperator

    7285 Posts

  • #19, von zeebarfDonnerstag, 15. August 2013, 21:12 Uhr vor 12 Jahren
    Blarg, ah well. It's not the end of the world. It was just a minor polish detail.

    Thanks for the valiant effort!

    Neuling

    13 Posts

  • #20, von afrlmeDonnerstag, 15. August 2013, 22:38 Uhr vor 12 Jahren
    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.

    Foren Imperator

    7285 Posts