Hello @Nieb
I tested your screenshot code but it failed to work for me. It only captures the Print statements for me, I simply created a red box, pointed the camera at the box, but the screenshot only shows the FPS meter, this is my code:
+ Code Snippet// Project: TestScreenshot
// Created: 2022-07-26
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "TestScreenshot" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 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
CreateObjectBox(1, 1, 1, 1)
SetObjectColor(1, 255, 0, 0, 0)
SetCameraPosition(1, 0, 2, 0)
SetCameraLookAt(1, 0, 0, 0, 0)
// How to use ( must be placed after Render() and before Swap() ):
DO
// ** Game Code Here **
Print(ScreenFPS())
Render()
IF GetRawKeyPressed(123) THEN ScreenShot()
Swap()
LOOP
FUNCTION ScreenShot()
TheScreenshot AS INTEGER : TheScreenshot = GetImage( GetScreenBoundsLeft(), GetScreenBoundsTop(), GetScreenBoundsRight(), GetScreenBoundsBottom() ) // Creates an Image from BackBuffer.
FileName AS STRING
FileName = GetCurrentDate() + "_" + GetCurrentTime() + ".png"
FileName = ReplaceString( FileName , chr(58) , chr(46) , -1 ) // Replace ":" with ".", ":" is not allowed in file names.
SaveImage(TheScreenshot, "screenshot\" + FileName)
DeleteImage(TheScreenshot)
ENDFUNCTION
Can you confirm the same problem?
Thank you