IsmAvatar / LateralGM

A free Game Maker source file editor
http://lateralgm.org/
Other
95 stars 25 forks source link

Fonts corrupton when using to display numbers #552

Closed Hughtech closed 3 years ago

Hughtech commented 3 years ago

Describe the bug

Fonts being displayed corrupted after the 7th digit. This happens you use the functions font_add_sprite or using a standard font in the Font category to display scores.

Steps To Reproduce

  1. Go to 'Fonts...'
  2. Click on 'Add Font....'
  3. Use any font
  4. Create object
  5. in the create event, type score = 1234567890
  6. in the Dtaw event type draw_text(x, y, string(score))
  7. run the game

Expected behavior

the score should be displayed "1234567890' but instead there is "1.234566+09" or something to that effect font_corrupted2

Exceptions & Error Messages

Game Files & Screenshots

font_corrupted1 font_corrupted3_draw_event

Additional context

RobertBColton commented 3 years ago

This is not a LateralGM bug, you are describing the scientific notation issue in ENIGMA. https://github.com/enigma-dev/enigma-dev/issues/488