"generate_tile" functions only create 16 small sprites, but the next functions "add_number" are not working, since its pick one of 16 sprites that created on previous functions.
I can fix it by put "Wait 0 seconds" in the middle, its not clean way, i'm just worried its will causing another problem if the events are getting complicated.
I remember a few year ago when i can't figure out what wrong with my events, then i can fix it by put "wait" on it.
Is possible to make functions work synchronous or blocking ?