Movement of Objects in a simulation

后端 未结 4 1489
轮回少年
轮回少年 2021-01-26 03:45

i am currently making a flash \"pond\" with fishes in it, and i have the ability to add food pellets onto the pond, how should i make the movement of my fishes to the food x,y l

4条回答
  •  粉色の甜心
    2021-01-26 04:18

    You could use a couple of Tween objects to adjust your fishes' x/y coords so that they move toward the food. What's nice is that you could get an ease in/ease out effect pretty easily this way.

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/transitions/Tween.html

提交回复
热议问题