Quote: "Would I have to do something like
if GetSpriteHitTest ( playlevel , ScreenToWorldX(GetPointerX()) , ScreenToWorldY ( GetPointerY () ))"
Exactly it!
Not sure what to say. Here's the same stripped-down example using view offset on the y scale and screentoworldx/y:
// set window properties
SetWindowTitle( "spritehittest" )
SetWindowSize( 500, 500, 0 )
// set display properties
SetVirtualResolution( 100, 100 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
playlevel = createsprite(CreateImageColor(255,255,200,255))
SetSpriteSize(playlevel,10,10)
SetSpritePositionByOffset(playlevel,50,-530)
setviewoffset(0,-600)
do
if GetSpriteHitTest(playlevel, screentoworldx(getpointerx()),ScreenToWorldY(getpointery()))
print("Hit!")
endif
Sync()
loop
move your mouse pointer over the box. Does it detect the hit? Works fine for me.