Test two local types

BlitzPlus Forums/BlitzPlus Programming/Test two local types

Testing like:

Type player
fieid x,y
end type
Type computer
field x,y
end type
;some more code
global c.computer = new computer
c\x = 100
c\y = 100
global p.player = new player
p\x = 400
p\y = 100
glolbal pimg = loadimage("where this image is located")
global cimg = lodaimage("where this image is loacted")
;evn more code
if imagescollide(pimg,p\x,p\y,0,cimg,c\x,c\y,0)
;do simething
endif

something like this, but the types aren't global