actionscript 3 - Can I add several sprite children with the same index? -


मुझे एक सूचक स्थान पर 2 sprites चाहिए Sprites के पास अलग-अलग निर्देशांक ( x विशेषताओं) हैं, इसलिए, उनमें से प्रत्येक बच्चे की स्थिति सक्रिय होने पर दिखाई दे सकते हैं।

स्पष्टीकरण, कोड:

  addChildAt (sprite1, 1); AddChildAt (sprite2, 1);   

क्या दोनों प्रेइट्स दिखाई दे रहे हैं?

नहीं, आप नहीं कर सकता। लेकिन आप आसानी से दृश्यता को नियंत्रित करने के लिए माता-पिता और बच्चों के बीच अतिरिक्त प्रेत जोड़ सकते हैं नमूना: <पूर्व> parentSprite.addChild (अतिरिक्त) extra.addChildAt (sprite1, 1); Extra.addChildAt (sprite2, 2);

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -