Code help

Posted by X-Dood on June 22, 2008, 9:34 p.m.

Okay im working on this game where you have a turrent.

anyone have a code, to make a bullet move towards the image_angle of the turret?

aka; make a object that will follow the turrets image_angle

tyvm.

Comments

Nighthawk 16 years, 6 months ago

In the event on the turret that makes bullets:

Quote:

i=instance_create(x,y,[BULLET OBJECT])

i.direction=image_angle

Hope this helps.

X-Dood 16 years, 6 months ago

Thanks.