Hi,
after reading, testing and frustrating give-up-thoughts I hope somebody can help me...
I have an array of 10 sprites.
Dim GV As GameView
Dim BD(11) As BitmapData ' I dont care here about #0
GV.initialize("GV")
Activity.AddView(GV,0,0,100%x,100%y)
My goal:
Depending on a variable e.g. sight(x) I want to show a sprite or not.
I am calculating all (INT) coordinates by myself, so I definetly do not want to use dip.
I have a tick already running and working
My problem:
I have no clue (and no documentation) how to display the moving sprites within the array
When to initialize?
How do I handle the DestRect?
When to invalidate the GV?
Idea:
For count = 1 To 10
BD(count).Bitmap = LoadBitmap(File.DirAssets,"pic50x50.gif")
BD(count).DestRect.Initialize(20,20,50,50) ' later e.g. ... Left(count),Top(count,Right(count),B(count)
GV.BitmapsData.Add(BD(count))
Next
GV.invalidate
Within my code I am going to change the coordinates and going to display the sprites again
btw.
To show one bitmap as sprite and the unwanted dip is not a problem and working...
I cannot show any more code since its really to embarrasing ;-)
Thanks...
after reading, testing and frustrating give-up-thoughts I hope somebody can help me...
I have an array of 10 sprites.
Dim GV As GameView
Dim BD(11) As BitmapData ' I dont care here about #0
GV.initialize("GV")
Activity.AddView(GV,0,0,100%x,100%y)
My goal:
Depending on a variable e.g. sight(x) I want to show a sprite or not.
I am calculating all (INT) coordinates by myself, so I definetly do not want to use dip.
I have a tick already running and working
My problem:
I have no clue (and no documentation) how to display the moving sprites within the array
When to initialize?
How do I handle the DestRect?
When to invalidate the GV?
Idea:
For count = 1 To 10
BD(count).Bitmap = LoadBitmap(File.DirAssets,"pic50x50.gif")
BD(count).DestRect.Initialize(20,20,50,50) ' later e.g. ... Left(count),Top(count,Right(count),B(count)
GV.BitmapsData.Add(BD(count))
Next
GV.invalidate
Within my code I am going to change the coordinates and going to display the sprites again
btw.
To show one bitmap as sprite and the unwanted dip is not a problem and working...
I cannot show any more code since its really to embarrasing ;-)
Thanks...