-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using font() in JS causes RangeError #1052
Comments
Could you provide a focused example? |
reproduced, but don't understand what causes the problem... |
This is the js version of the file I'm trying to run:
And this is the lua version of that script:
The lua version correctly prints out the sprite at that location in the sheet: |
Amazing, thanks all! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm attempting to use the font() method for the first time in a game written in JS. I'm getting an error when I try to run the following code (adapted from the docs):
font('A',20,20,2,9,9,true,3)
The error being logged out into the console is:
RangeError: Invalid Stack Index 8
There is definitely a sprite at the corresponding ASCII position for character "A" and when I run the same code as lua, it prints it out correctly to the screen. So it looks like an issue with the implementation in JS.
I am using v0.70.6
Thanks
The text was updated successfully, but these errors were encountered: