I have in an add sprites sub...
Line 4 gives me an error... Object reference not set to an instance...
Pawn object exists properly.
My brain just isn't coping with something in this regard.
B4X:
For j=0 To 19
Pawn.New2(AppPath & "\PSprite.png",6,15,15,6)
Pawn.Data=1
Pawn.Data=bit.ShiftLeft(Pawn.Data, j Mod 3)
Pawn.X = 1
Pawn.Y = i*16+1
Pawn.Velocity = 0
Pawn.Direction = 0
gw.SpriteAdd(Pawn.Value)
Next
Pawn object exists properly.
My brain just isn't coping with something in this regard.