If I do this:
global ThisImage = loadimage blah
type peewee
field image:timage
field x
field y
function create()
for local xiter = 0 to 30
local p:peewee = new peewee
p.image = ThisImage
next
blah
blah
Will the line in Bold >> p.image = ThisImage<< load the same image 31 times?
Or is the image loaded once and then copied?
I basically don't want to load the image 30 times but want to assign the loaded image to 30 objects.
How can I tell if its doing this or not?
Thanks.
Forgive me if this is obvious.
global ThisImage = loadimage blah
type peewee
field image:timage
field x
field y
function create()
for local xiter = 0 to 30
local p:peewee = new peewee
p.image = ThisImage
next
blah
blah
Will the line in Bold >> p.image = ThisImage<< load the same image 31 times?
Or is the image loaded once and then copied?
I basically don't want to load the image 30 times but want to assign the loaded image to 30 objects.
How can I tell if its doing this or not?
Thanks.
Forgive me if this is obvious.