Move object relatively

approg
approg Community Member Posts: 250 ♪ Opening Act ♪
It may be my lack of understanding of how the Move action works but I would like a way to move an object a set amount relative to its current position. For example, rather than moving an object to X and Y, I want to move it to it's current X position + 10 and its current Y position + 10.

There appears to be no variable that holds an object's current position. Is this something that I need to do in JavaScript?

Comments

  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    As you probably know the starting position of the object, you can create your own variables holding the initial values for x and y. You can modify these variables normally, e.g. "Add to variable" "10". The Move to action can use the variables for the target values.

    Tim
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!