License from €75 Log in
DE EN FR ES IT CZ

Item Highlights

  1. · 3 hours ago
    Hello everyone. So, I was trying to implement the feature from this thread 

    (Animation frame action in the first frame:
    getObject("ActiveAnimations[Plant]"):setValue(VAnimationLastFrame, 1)
     
    Working, as item animation stoped.

    Definition script part:

    prevItem = nil -- initial value of previously highlighted item
    
    function checkItemStatus()
     if prevItem ~= nil then prevItem:setValue(VAnimationFirstFrame, 1); prevItem:setValue(VAnimationLastFrame, 1); prevItem = nil end
     -- + --
     if game:getLink(VGameCurrentObject):getId().tableId == eObjects then
      if game:getLink(VGameCurrentObject):getBool(VObjectIsItem) then
       prevItem = getObject("ActiveAnimations[" .. game:getLink(VGameCurrentObject):getName() .."]"); prevItem:setValue(VAnimationFirstFrame, 2); prevItem:setValue(VAnimationLastFrame, 2)
      end 
     end
    end
    
    function onMouseEvent(eventType)
     if eventType == eEvtMouseMove then checkItemStatus() end
    end
    
    registerEventHandler("mouseEvent", "onMouseEvent", {eEvtMouseMove})
     

    Not working.

     I believe the reason is that the thread is already quite old. (Or I am missing something) I would appreciate any help.
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free

Do you know a solution or have a question about it?

Write a reply

Really delete this post?