//argument0 = x
//argument1 = y
//argument2 = object
//argument3 = speed (If the instance don't have to move, put false or 0
//argument4 = direction
//argument5 = transparency [0.1-1] (false or 0 if you don't want any transparency)
//argument6 = color
//argument7 = angle (true or 1 if you want the object to face his direction)
var instance_ext;
instance_ext = instance_create(argument0,argument1,argument2)
if argument3 != false || argument3 != 0
{
instance_ext.speed = argument3
}
if argument4 != false || argument4 != 0
{
instance_ext.direction = argument4
}
if argument5 != false || argument5 != 0
{
if argument5 <= 1
{
instance_ext.image_alpha = argument5
}
}
if argument6 != false || argument6 != 0
{
instance_ext.image_blend = argument6
}
if argument7 = true || argument7 = 1
{
instance_ext.image_angle = instance_ext.direction
}
else
{
instance_ext.image_angle = argument7
}
return instance_ext
Enjoy the site? Donations are helpful - even just $1