[問題] hittest 多重判斷
假設今天有很多顆球同時在螢幕上動,任何一顆碰到對方就會反彈,
假如有10顆球,在每顆球的as裡該怎寫 hittest?
總不能真的寫九行hittest吧?
有沒有類似 if (_root.anymovieclip.hitTest(me)) 或
if (hitTest(_root.anymovieClip))之類的用法?
上面兩個只是例子,當然官方沒有這個用法,不過該如何呈現?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.174.130
推
05/28 09:47, , 1F
05/28 09:47, 1F
推
05/30 10:36, , 2F
05/30 10:36, 2F
Flash 近期熱門文章
PTT數位生活區 即時熱門文章
13
34
30
49