Collision Detection of Sprites in Actionscript 3.0 Flash

后端 未结 3 1598
我寻月下人不归
我寻月下人不归 2021-01-16 11:28

I am making an achtung die kurve-like game in AS3.0. So far I\'ve done the movements of the 4 different players, and it works alright.

I am now to make collision de

3条回答
  •  无人共我
    2021-01-16 12:04

    The problem you discribe is a very common problem for collission detection because the object has a set width and height and therefor defines a rectangle as the object.

    There is a solution however to make a colission detection system on pixel level I have found this on the official site and this made me able to make collission detection for bitmaps on pixel level.

    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d55.html

    hope it helps you out in the same way.

提交回复
热议问题