josyanf1
Member
Hi all! Programming objects that have different directions I thought I could make a for loop to optimize code.
I usually do it this way to assign attributes to an object:
But I'm still a novice programmer, do you know how it can be done?
A greeting and thanks for the help!
I usually do it this way to assign attributes to an object:
Code:
var particle_1 =instance_create(x,y,obj_firework_particle); with particle_1 {direction = 30};
var particle_2 =instance_create(x,y,obj_firework_particle);with particle_2 {direction = 60};
But I'm still a novice programmer, do you know how it can be done?
Code:
for (c = 0; c < 12; c += 1)
{
var ?? = instance_create(x,y,obj_firework_particle); with ?? {direction = 30 * c};
}