WinMobileUser
New Member
Hi all!
I have a problem with Sprite.dll programming. My program must move the sprite, so I used Sprite.DestinationX and Sprite.DestinationY. Also I use Sprite.HasDestination = True.
My code:
But program doesn't work! As I think I don't understand the syntax. Help me please! :sign0085:
I have a problem with Sprite.dll programming. My program must move the sprite, so I used Sprite.DestinationX and Sprite.DestinationY. Also I use Sprite.HasDestination = True.
My code:
B4X:
Sub AppStart
Form1.Show
gw.New1("Form1",0,0,Form1.Width,Form2.Height)
Sprite.New2(AppPath&"\star.png",8,16,15,8)
Sprite.X=100
Sprite.Y=100
Sprite.Velocity = 1
gw.SpriteAdd(Sprite.Value)
Sprite.DestinationX=50
Sprite.DestinationY=50
Sprite.HasDestination = True
End Sub
Sub Timer1_tick
gw.tick
End Sub
But program doesn't work! As I think I don't understand the syntax. Help me please! :sign0085: