weird, works fine for me, perhaps ClearScreen() may help?
// Project: helloworld
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Hello World2" )
SetWindowSize( 800, 600, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 800, 600 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 60, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
CreateText (1, "Hello World")
SetTextSize(1,100)
SetTextColor (1, 255, 255, 255, 255)
CreateSprite(1,0)
SetSpriteSize(1, 64, 64)
hellox = 0
boxx = 0
do
//** Hello movement
hellox = hellox+1
SetTextPosition(1,hellox,100)
//** Box movement
boxx = boxx + 1
SetSpritePosition(1, boxx, 200)
ClearScreen()
Sync()
loop
if not does this method work? (far from ideal but may give a clue as to the issue)
// Project: helloworld
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Hello World2" )
SetWindowSize( 800, 600, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 800, 600 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 60, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
CreateText (1, "Hello World")
SetTextSize(1,100)
SetTextColor (1, 255, 255, 255, 255)
CreateSprite(1,0)
SetSpriteSize(1, 64, 64)
hellox = 0
boxx = 0
screen = CreateSprite(0)
SetSpriteSize(screen,GetVirtualWidth(),GetVirtualHeight())
do
//** Hello movement
hellox = hellox+1
SetTextPosition(1,hellox,100)
//** Box movement
boxx = boxx + 1
SetSpritePosition(1, boxx, 200)
Update(0)
SetSpriteVisible(screen,0)
Render()
SetSpriteImage(screen,GetImage(0,0,800,600))
ClearScreen()
SetSpriteVisible(screen,1)
sync()
loop
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu