Quote: "
// Project: CalculatorPlus
// Created: 2015-11-04
// set window properties
SetWindowTitle( "CalculatorPlus" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
Global First
Global Second
Global Answer
Global MButton
Global TextNumber
// 1 Button
AddVirtualButton ( 1, 50, 175, 100 )
SetVirtualButtonActive( 1, 1 )
SetVirtualButtonText ( 1, "1" )
// 2 Button
AddVirtualButton ( 2, 150, 175, 100 )
SetVirtualButtonActive ( 2, 1 )
SetVirtualButtonText ( 2, "2" )
If GetButtonPressed ( 1 ) = 1
TextNumber = TextNumber + 1
Endif
If GetButtonPressed ( 2 ) = 1
TextNumber = TextNumber + 2
Endif
do
Print( ScreenFPS() )
Print (TextNumber)
Sync()
loop
"
I Cant Fully understand what I'm doing wrong?