hi,
what is the best method to create a sprite, with the possibility of movement with touch?
i need of a sprite (ex. a man, composed of 50 images) and i've tried with this code (with spritesheet, canvas and bitmap) and it's ok..
Dim can1 As Canvas
Dim bmpActor As Bitmap
Dim re(55) As Rect
Dim s(55) As Rect
...
Sub timerInactivity_Tick
actorSpriteMoveInactivity
End Sub
Sub actorSpriteMoveInactivity
'--- display 50 images for sprite movement..
For i = 0 To 49
can1.DrawBitmap(bmpActor,s(inc),re(i))
Next
Activity.Invalidate
inc = inc + 1
If inc > 49 Then
inc = 0
End If
End Sub
but now I need to use the library functions
gesturedetector to move it with touch.
Using a panel and a static image (not a sprite) it's ok.. but with a sprite? how can i move ?
or there is another method to make a sprite animated with possibility of movement with touch?
thanks