HYPE_Processing icon indicating copy to clipboard operation
HYPE_Processing copied to clipboard

Where to call loc()

Open JesseScott opened this issue 11 years ago • 2 comments

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...

JesseScott avatar May 14 '14 20:05 JesseScott

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

debone avatar May 14 '14 20:05 debone

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

JesseScott avatar May 14 '14 20:05 JesseScott