hi, I am new to this agk, though I have programmed in darkbasic pro so it aint too dissimilar, but I started a little test program which runs fine under windows but seems pretty unresponsive on the tablet when the speed is fast! if you click the balloon it should restart the balloon at a random location and a random speed, and you get a point, simple stuff but as I say I just started out! anyhow here is the code, I was wondering if there is a way to make it more responsive on the tablet! I probably think it is due to using one single pixel point if you like!
rem
rem AGK Application
rem
rem Landscape App
`SetDisplayAspect( 4.0/3.0 )
SetVirtualResolution ( 640, 480 )
image = LoadImage ("balloon.png")
sprite = CreateSprite ( image )
newX#=320
newY#=490
score#=0
speedy#=3
do
Print (score#)
px# = getPointerX()
py# = getPointerY()
rem find out if the pointer/mouse has JUST been pressed
if getPointerPressed()=1
if getSpriteHitTest(sprite,px#,py#)=1
score#=score#+1
newY#=490
speedy# = random (3,15)
newX#= Random( 0,640 )
Endif
endif
newY#=newY#-speedy#
if newY#<-64
newY#=490
newX#= Random( 0,640 )
endif
SetSpritePosition ( sprite, newX#, newY# )
Sync()
loop
Hail to the king, baby!