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

Where to call loc() #64

Open
JesseScott opened this issue May 14, 2014 · 2 comments
Open

Where to call loc() #64

JesseScott opened this issue May 14, 2014 · 2 comments

Comments

@JesseScott
Copy link

Hi....

I'm trying to use HYPE in a OOP structure, with each class holding an instance of HYPE.
Because of this, I need to position each instance of it, but am unsure in what class level (H, HDrawable, HStage) to do so... and exactly how to access the members of the child classes properly...

@debone
Copy link

debone commented May 14, 2014

From my experience, you can use loc() on HDrawable, and from my code
venturing I found that HStage have the childs you need. So you find
HStage()._firstChild and iterate through all childs...
Hope I helped

@JesseScott
Copy link
Author

Yeah, I just realized that I can create an instance of HDrawable in HCallback() and call loc() onit there... thanks.

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