Moving object issue

  • #1, by dramaminiWednesday, 24. September 2014, 04:20 6 years ago
    Hi!
    There is a bug when moving objects. If you try to move an object for example by (0, 40) with a duration of 200 ms, you have tou wait for 200 ms in order to move the same object again at same distance. When you click faster the hotspot that moves the object, object is being moved at the same direction but at another, unspecified distance and you lose object control.

    In order to skip this bug, you have to deactivate the hotspot that moves the object, for 200 ms, preventing a faster next click by the user.

    (I hope you understood! Sorry for my bad english)

    Newbie

    44 Posts


  • #2, by afrlmeWednesday, 24. September 2014, 06:14 6 years ago
    You could try my workflow function in the script index of the wiki. http://wiki.visionaire-tracker.net/wiki/MoveObj_%28CMS%29

    I don't know if it works any different to the move object action part mind.

    Imperator

    6842 Posts

  • #3, by dramaminiWednesday, 24. September 2014, 11:39 6 years ago
    I will try it! Thanks AFRLme!

    Newbie

    44 Posts

  • #4, by afrlmeWednesday, 24. September 2014, 12:22 6 years ago
    Oh by the way: The object doesn't move by incremental values, the values you set are coordinates. It should probably say "to" not "by" in the editor.

    Imperator

    6842 Posts

  • #5, by SimonSWednesday, 24. September 2014, 13:18 6 years ago
    The next version will overwrite any tween that has the same target field if a new tween is specified. That's a bug in the old version. You should save the target position in a value and not use the current position so it just adds up to the position.

    Thread Captain

    1368 Posts

  • #6, by afrlmeWednesday, 24. September 2014, 13:52 6 years ago
    Hmm I was wondering if it would overwrite the table for the tween based on target name or something. I wasn't sure if it did or not, as I haven't tested it.

    Imperator

    6842 Posts

  • #7, by AlexWednesday, 24. September 2014, 15:08 6 years ago
    Oh by the way: The object doesn't move by incremental values, the values you set are coordinates. It should probably say "to" not "by" in the editor.

    It moves by incremental values. The action part label is correct.

    Internally the action part values X,Y are added to the current value of VObjectOffset. Maybe you're modifying the object offset in one of your scripts or something like that.

    Great Poster

    378 Posts

  • #8, by afrlmeWednesday, 24. September 2014, 15:13 6 years ago
    I thought it moved to the coordinates I specified when I tried your action part. Wouldn't it be a good idea to add the option to declare whether it should: set, plus or minus? like the set value action part for example.

    Imperator

    6842 Posts

  • #9, by AlexWednesday, 24. September 2014, 15:28 6 years ago
    yeah, maybe I'll add another action part where you can send the object to a specific position (adding an option to the existing action part is not possible because internally we only have 3 int values per action part).

    Great Poster

    378 Posts

Write post