How to read data from shape/graphics object

后端 未结 4 511
傲寒
傲寒 2020-12-12 04:16

I am wondering if it is possible to get the data that is stored in a shape/graphics object in flash using actionscript 3?

In my project I would like to be able to dr

4条回答
  •  猫巷女王i
    2020-12-12 04:45

    OK, looks like its not possible then, to bad.

    I am doing a 2d topdown racing game, and I wanted to generate lines along the walls of the track and check the players velocity against thouse lines. That way I would be able to implement some basic collision response by reflection the players velocity around the normal of the line that it collides with and make it bounce off walls. Does anyone have any good ideas about how to get the same type of collision behavior without the actual lines?

    Is it possible to overload the graphics object in flash somehow so that when I draw something it is recorded? Or does the flash IDE not use the Graphics drawing api?

    Regards

提交回复
热议问题