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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -