So I have a triangle spinning and from each of it's corners it shoots a bullet and I want them to shot out of the corners at the same angle that the corners are pointing, how can I do that?
The triangle is rotating, so I'm assuming the originpoint is in the center..
Place imagepoints at the corners..
for imagepoint 1:
on bullet created - set angle = angle(triangle.x,triangle.y,triangle.imagepointx(1),triangle.imagepointY(1))
etcetera..
or....you can always add more image points <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
capx> http://s000.tinyupload.com/index.php?fi ... 1871567470
but they are not necessary <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
capx> http://s000.tinyupload.com/index.php?fi ... 6135716421
I do have image points set at each point in the triangle but the only go in 2 directions instead of making a spray all around coming from the points of the triangle
Develop games in your browser. Powerful, performant & highly capable.
..if you want something like this
Download this capx http://s000.tinyupload.com/index.php?fi ... 6135716421
and see how it was done
Also is there anyway I could make this triangle move around the player once it spawns in while it spins? and yes that's exactly what I want, thank you