หน้า: [1]
 
ผู้เขียน หัวข้อ: ทำวัตถุให้ลงมาทีละชิ้นโดยเวลาต่าง  (อ่าน 2370 ครั้ง)
0 สมาชิก และ 1 ขาจร กำลังดูหัวข้อนี้
เอาโค้ดนี้ไปใส่ทุกวัตถุที่หล่นลงมามันเลยหล่นมาพร้อมกัน อยากให้มันค่อยๆ หล่นลงมาทีละชิ้นทำไงดีค่ะ
onClipEvent(enterFrame)

{
      this._rotation += 5;                               
      this._y += 9;
   
      if(this._y > Stage.height)
      {
      this._y =- 5;
      this._x =random(Stage.width);
      }
      if (this.hitTest(_root.bin1))
   {
      
      _root.score++;
      unloadMovie (this);

   }
}
บันทึกการเข้า
หน้า: [1]
 
 
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines | Thai language by ThaiSMF Valid XHTML 1.0! Valid CSS!