Skip to content
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

Issue with certain spritefonts. #114

Closed
JonathanHackerCG opened this issue Aug 18, 2020 · 3 comments
Closed

Issue with certain spritefonts. #114

JonathanHackerCG opened this issue Aug 18, 2020 · 3 comments
Labels
bug 😅 Juju did a bad thing

Comments

@JonathanHackerCG
Copy link

JonathanHackerCG commented Aug 18, 2020

I have a few spritefonts which I am using with Scribble. One of my spritefonts does not display correctly. Some of the characters are repeated at the exclusion of others. See this screenshot, where the top one is incorrect, but the second one is fine.

ScribblePixelfontIssue

All the spritefonts are set up the same way. I checked that the collision mask was set up according to the documentation, and I tried putting the spritefont on its own texture page. There is one pixel of border around the font. Perhaps this is user error, but I am unable to solve this issue on my own at this point.

This particular issue is Scribble 6.0.10 for 2.3, which I updated to use today. The issue does not occur with Scribble 5.5.0 for 2.2 as far as I am aware, as it has been working for me previously.

Code:

//Create Event
scribble_init("", "fnt_pixelfont", false);
scribble_add_spritefont("fnt_pixelfont", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,?!'()<>^*+=-/%:;_$", 1, 4);
scribble_add_spritefont("fnt_smallfont", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,()'?!-/$", 1, 3);

//Draw Event
scribble_draw(x, y, "0123456789\nABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklmnopqrstuvwxyz\n.,?!'()<>^*+=-/%:;_$");
scribble_draw(x, y + 56, "[fnt_smallfont]0123456789\nABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklmnopqrstuvwxyz\n.,()'?!-/$[/f]");

Attached is a testing project which should demonstrate the issue. IDE v2.3.0.529
ScribbleTesting.zip

@ahp275
Copy link

ahp275 commented Aug 19, 2020

I came here to inquire about this exact issue. Glad it's not just me - I've been trying to figure out for a couple hours where I could've gone wrong! Scribble was working wonderfully when I was using GMS2.2, but today when I updated to 2.3 something seems to have gone awry.

Here's my spritefont in the image editor:
1spritefont

And here's the relevant code in my dialogue object (based on Juju's example project):
2code

But here's how it's showing up when I compile the game:
3compiled

I've tried deleting and reloading the sprite, rearranging the glyphs in the font string, etc. FWIW the built-in draw_text functions are working fine.

@JujuAdams JujuAdams added the bug 😅 Juju did a bad thing label Aug 19, 2020
@JujuAdams
Copy link
Owner

Relates to #111. This bug is caused by some changes in the way GMS2.3.0 handles sprite collisions.

@JujuAdams
Copy link
Owner

Fixed in 6.0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 😅 Juju did a bad thing
Projects
None yet
Development

No branches or pull requests

3 participants