[21 :52 :11] [ERREUR] DisplaySprite(): Cette fonction ne peut être appelée à l'intérieur d'un bloc StartDrawing()/StopDrawing().
[21 :52 :21] Le programme a été arrêté.
!i!i!i!i!i!i!i!i!i! !i!i!i!i!i!i! !i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits Version de PB : 6.12LTS - 64 bits
It has been many versions of PureBasic since that was possible and then it was only possible with the DirectX 7 sub system. I don't think it is a likely possibility.
However, for your demonstrated need you could just pre-make the necessary sprites and display them as needed instead of remaking the needed composed sprite each time.
You would need sprites for the three text sections: 'Score : '; ' - (Best : '; ') '.
You would need a sprite for each numeric digit 0 to 9.
CreateSprite(2, 100,100)
StartDrawing(SpriteOutput(2))
;;;
DRAWSPRITE(1,5,0) ; ===> N E W I N S T R U C T I O N P B
;;;
DrawingMode(1)
DrawingFont(Police)
DrawText(20,20, a$, RGB(99,99,99))
StopDrawing()
!i!i!i!i!i!i!i!i!i! !i!i!i!i!i!i! !i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits Version de PB : 6.12LTS - 64 bits