Licence od 75 € Přihlásit se
DE EN FR ES IT CZ

Send Object To Position

  1. · 3 years ago
    Hi all, I think I have found a bug.
    I need to move an object in a scene an I see that I could use 2 different action parts: "Move object" and "Move object to".

    I use "Move object" to move an item of X pixels orizontally and / or Y pixels vertically.
    Instead, given the name, I think that "Move object to" should animate my item to position specified by X and Y coordinates.

    It seems to me that the two action parts actually behave in the same way and my object is always moved by only X pixels orizontally and Y pixels vertically.
  2. Pracujete na hře?

    Bezplatná verze umožňuje až 25 scén na projekt. Pro více scén a pro prodej hry potřebujete licenci.

    Zobrazit licence Vyzkoušet zdarma
  3. · 3 years ago
    They are both based on offset.

    Move Object should offset the object sprite/animation from the default position you placed it in the scene by the amount you specify.

    Move Object To should offset the object to the absolute coordinates you specify.

    Quick note: you need to understand that the offset for both is based on the object center value coordinate you specified & not the top left pixel of the sprite/animation.

    It's much easier to move animations about than objects & I would recommend doing that, unless it's an object the player can interact with.

    ActiveAnimations["example"]:to(1000, { CurrentPosition = {x = 100, y = 100} })



  4. · 3 years ago
    Yeah, it is quite annoying that the movement of the object is based on the offset. That can give you a headache...

    In case you are not comfortable with using script as AFRLme suggested, there are custom action parts you can add to your project as plugins.
    There is one for moving animations and another one for moving objects to an absolute postion (done with a bit of math to calculate the absolute position based on the position of the image).

Toto téma je uzavřené, protože tu přes rok nikdo neodpověděl. Svůj dotaz můžete položit v novém tématu.

Nové téma

Opravdu smazat tento příspěvek?