On Android draw text draws black areas instead of text[solved]

FMStudioGameDev

  • *
  • Posts: 203
I am updating my games and I am having a weird issue with drawing events on Android.
Basically in a scrolling scene instead of drawing text a black area is shown.
Here is how it is supposed to work (and how it works on iOS, Mac and Flash):


Here how it looks on Android:


This is the code in draw event:

Another weird thing is that I tried to change drawing to screen space, black areas do not show if I type numbers in coordinates but the font is blurry (like it's being written many times):


but if I change coordinates using blocks (x on screen of self)  black areas are back:


I tried with several different fonts but with no luck

« Last Edit: March 29, 2019, 05:47:29 am by FMStudioGameDev »

rob1221

  • *
  • Posts: 9420
I'm guessing this is due to drawing something far off screen.  If you have each actor check if they're on screen before drawing their text, the problem might go away.

FMStudioGameDev

  • *
  • Posts: 203
I'm guessing this is due to drawing something far off screen.  If you have each actor check if they're on screen before drawing their text, the problem might go away.
Thanks rob, solved by using "actor on screen" boolean block.