• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML How to draw encrypted text?

C

CrabKing

Guest
So, I have this code that gradually draws text like a typewriter,
GML:
///Create Event
fin="Text";
len=string_length(fin);
lettersSoFar="";
charCount=0;
alarm[0]=4;

///Alarm Event
lettersSoFar=string_copy(fin,0,charCount);
if(charCount<len)
{
    charCount+=1;
    sound_play(talking);
    alarm[0]=4;
}

///Draw Event
draw_set_color(c_orange);
draw_set_font(title_font);
draw_text(x,y,lettersSoFar);
but I want "Text" to be replaced with an encrypted text that I copy pasted into it.
Of course, it turns the encrypted text into question marks. I'm wondering how to tell it to not worry about converting it, and just draw the symbols.
Is there a way to do this in the actual code instead of drawing a sprite for every letter or something?
 
Top