W
Wild_West
Guest
So I've used this method of rotating objects successfully before but that was only with 1 object.
If I try to use this with more than 1 they rotate in the same place all mashed together.
How would I go about making multiple objects rotate around one object but stay away from eachother in a fixed location.
In this object's create event it makes the 4 bombs and tags them all with bomb_number_id.
If I try to use this with more than 1 they rotate in the same place all mashed together.
How would I go about making multiple objects rotate around one object but stay away from eachother in a fixed location.
Code:
//Making Bullets Rotate around self
bomb_1_id.x = x + lengthdir_x(140,0);
bomb_1_id.y = y + lengthdir_y(140,0);
bomb_2_id.x = x + lengthdir_x(140,90);
bomb_2_id.y = y + lengthdir_y(140,90);
bomb_3_id.x = x + lengthdir_x(140,180);
bomb_3_id.y = y + lengthdir_y(140,180);
bomb_4_id.x = x + lengthdir_x(140,270);
bomb_4_id.y = y + lengthdir_y(140,270);