So I am pretty new to app game kit. I have recently download the application from Steam. (thanks Josh)
So I can get the hiscore to display correctly when playing the game, just not at the welcome screen. I watch the tutorial, would try to step through the process, much of the code has been changed around to match the demo.
So long story short, I am not sure why the hiscore is clearing?
main code
SetTextString(1,"SCORE: "+str(score))
if score > hiscore
hiscore = score
endif
SetTextString(2,"HISCORE: "+str(hiscore))
I tried the above and also
if hiscore <= score
hiscore = score
endif
Both options would update on the main screen, but not the welcome screen.
welcome code
CreateText(3,"Simple Game")
SetTextSize(3,20)
SetTextBold(3,1)
SetTextPosition(3,(gameBoardWidth/2)-(GetTextTotalWidth(3)/2),100)
CreateText(4,"HISCORE: "+str(hiscore))
SetTextSize(4,20)
SetTextBold(4,1)
SetTextPosition(4,(gameBoardWidth/2)-(GetTextTotalWidth(4)/2),10)
CreateText(5,"Hit Fire to Start")
SetTextSize(5,20)
SetTextBold(5,1)
SetTextPosition(5,(gameBoardWidth/2)-(GetTextTotalWidth(5)/2),120)
gosub Hidegamesprites
gosub showwelcomescreen
repeat
gosub move_stars
sync()
until GetPointerPressed()=1
System Setup
Ubuntu 18.04.1 LTS
8GB Memory
AMD processor
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 21
Model: 48
Model name: AMD A10-7850K Radeon R7, 12 Compute Cores 4C+8G
Stepping: 1
CPU MHz: 1753.020
CPU max MHz: 3700.0000
CPU min MHz: 1700.0000
BogoMIPS: 7386.10
Virtualization: AMD-V
L1d cache: 16K
L1i cache: 96K
L2 cache: 2048K
Josh