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

Move Object to Actionpart not Absolute

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    Hello to all,

    Have a scene where i'm trying out Move Object To actionpart but the object always moves in relation to the object (offset) and not to the absolute position. Can u confirm this pls?

    Using 5RC1.

    Rgrds
  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
  3. · 10 years ago
    THere are two action parts which can move an object

    move object to -> absolute
    move object (by) -> relative

    The normal "to" should move to an absolute position as far as i know. If not I would consider this as a bug^^


  4. · 10 years ago
    Yes, basically 'move object to' should be absolute, but it's relative instead, so it looks like a bug indeed.
  5. · 10 years ago
    The action part doesn't work as you might expect it, it uses ObjectPosition to calculate the absolute position, so set the ObjectPosition to the top left of the image if you want to use it on sprites.
  6. · 10 years ago
    Thanks Simon,

    It's a bit strange, and i still think there is some issue so i've PM'ed you a test ved if you could take a look.


  7. · 10 years ago
    Please set the position of the image and then try again.
    • Image in post
  8. · 10 years ago
    Now that's clear, thanks so much! Keep up the great work.
  9. · 10 years ago
    By the way, would it be possible to use this absolute movement with LUA?

    For now i can only remember ObjectOffset which is relevant movement.

    Thanks
  10. · 10 years ago
    You can calc the absolute position based on the object position.
    For example your object is at position x 500,y 500 and you want to move it to absolute position x 250, y 750 then:

    Offset x = (Object.name.Position.x - wanted position x)*-1
    offset y = (Object.name.Position.y - wanted positon y)*-1


  11. · 10 years ago
    Yeap, that's a good way to solve this , thanks!
  12. · 10 years ago
    Why don't set the character directly on the wanted position??

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?