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))
or....you can always add more image points
but they are not necessary
Develop games in your browser. Powerful, performant & highly capable.
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
..if you want something like this
Download this capx
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