C
corwin22
Guest
I have a script that is supposed to create an object with a few variables but it doesn't work I have tried using 'with' but it won't work?
//scr_orb(Health,color,speed)
// using this will create an entire row at the top!
orb = (instance_create_layer(32,32,"Enemy",obj_orb))
with (orb) {
Health = argument0
Color = argument1
spd = room_speed * argument2
}
// using this will create an entire row at the top!
orb = (instance_create_layer(32,32,"Enemy",obj_orb))
with (orb) {
Health = argument0
Color = argument1
spd = room_speed * argument2
}