Luomu, that will work no problem. Also you can eliminate the "objref" variable and do it directly:
System.Create('Sprite', 1, 0, 0)
SOL.Sprite.x =300[/code:2fstjl4k]
And how do I get the new created object in the condition below?
value=40
name="N"+str(value)
System.Create(name,1, 0, 0)[/code:2fstjl4k]
if I try and use:
[code:2fstjl4k]
SOL.name.x=300[/code:2fstjl4k]
It ill show an error[i](AttributeError:class SOL has no attribute 'name')[/i]
and I really need to get the object with a script like that..