Can anyone explain why the first 8 characters aren't being displayed?
print("123456789")
sync()
repeat : until getRawKeyPressed(27) = 1
end
This is how the output looks for me:
It displays fine as long as the print and sync commands are used inside the loop. Nevermind why I want to display info outside the loop, this is just an example of something else I was working on that shows another bug, which is as follows.
This example requires you to create an additional include file. The include file has a function to initiate variables for me (for a gui library I'm making). This function initializes a global variable which is used in other functions that increment its value. If that function returns the global value, then it registers as 0 outside the function. Remove the return value from the function and you'll see its value incremented in this example as expected. I just discovered that if I move the duh() function to the included file instead, then it would work fine and I can return the global value without issue.
main.agc
#include "test.agc"
init()
a1 = thing
duh()
a2 = thing
duh()
a3 = thing
duh()
a4 = thing
duh()
repeat
print(a1)
print(a2)
print(a3)
print(a4)
sync()
until getRawKeyPressed(27) = 1
end
function duh()
inc thing
endfunction thing
test.agc
function init()
global thing = 0
endfunction