Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x and y of FlxButton of no use in update() #40

Closed
Hajus opened this issue Feb 14, 2010 · 2 comments
Closed

x and y of FlxButton of no use in update() #40

Hajus opened this issue Feb 14, 2010 · 2 comments

Comments

@Hajus
Copy link

Hajus commented Feb 14, 2010

I can position the button in create() of the FlxState. I can move it around in update() via velocity and acceleration.

I can not reposition it in update() by setting x and y anew. While a trace() shows that the variable is set, it does not change the position of button on the state.

I helped myself by "button.reset(newX,button.y);", but this is only valid as long the y variable is in sync with the actual position.

@AdamAtomic
Copy link
Owner

groups need to use reset currently, to keep all their members up to date

@AdamAtomic
Copy link
Owner

moving this to the closed issue list...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants