How do i make a sprite move and not leave a trail behind of itself.
B4X:
Sub App_Start
Form1.Show
gw.New1("form1",0,0,form1.Width,form1.Height)
spr1.New2(AppPath & "\block.jpg",1,30,30,1)
spr1.X=100
spr1.Y=100
spr1.Velocity=0.1
gw.SpriteAdd(spr1.Value)
timer1.Enabled=True
timer1.Interval=1000
End Sub
Sub Timer1_Tick
gw.Tick
spr1.X=spr1.X+5
End Sub
When the block moves it leaves an impression of itself, the block.jpg but i want it to delete the last move so that you get a transition.
Also in sprite.new2("xxxxxxx".... what image types are acceptable? bmp,jpg,gif etc..
Hi, you must to set a background image to your Form... If it's empty you'll see your "bloc" pasted as background... Did you try to set an image as background?