Jump to content
Search Community

Determine the relationship between current and new X

Arcane001100 test
Moderator Tag

Recommended Posts

I am having a bugger of a time trying to understand how to set a variables value to a sprite's current X position prior to it's tween.

 

To clarify:

 

*******************************************

btn0     btn1     btn2     btn3     btn4

           -----

*******************************************

 

in the example above, the '-----' marker signifies the current button.

 

if I click on 'btn3' the marker will tween on over to underneath 'btn3'. great. yay.

 

I would like to be able to have a variable:int set to the current button's X value-- from which I could determine if the tween.to value is < or > and animate accordingly (I will be animating the '-----' based on the < or > relationship).

 

I hope this makes sense to you, it does to me.... but my wife once told me I have issues expressing myself. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...