Proble, with Sas.SpriteBehaviors

BlitzMax Forums/BlitzMax Beginners Area/Proble, with Sas.SpriteBehaviors

JohnK(Posted 2007) [#1]
Hello!
I have problem with this module.
Here is my code:
For a:Sprite = EachIn EnemyList
For b:Pula = EachIn PulaList
If ImagesCollide(b.entity,b.x,b.y,0,a.GetImage,a.GetX,a.GetY,0) Then
PulaList.Remove(Self)
EnemyList.Remove(Self)
EndIf
Next
Next

Pula - Type, Pula.Entity - the Pula's Image, PulaList - List with content - Pula. If i compile this code, the compiler says: "Unable to convert from 'TImage()' to 'TImage'"

What i must do? please help....


Who was John Galt?(Posted 2007) [#2]
Wherever you call functions, stick a set of brackets in.
eg: a.GetImage()


JohnK(Posted 2007) [#3]
Nomen luni, Thanks! It works!