Resource icon

Tutorial How to change fonts in your scripts

Buttjuice

happy dev
Member
Posts
16
#1
Buttjuice submitted a new resource:

How to change fonts in your scripts - Change text for things like your summary screens

Hi there! Have you ever wanted to change your font for a specific thing in your game, like the summary screen? It's actually pretty easy, so here's how to do it:

First, go to your SpriteWindow script and copy the code referring to def pbDrawTextPositions(bitmap,textpos) and paste it two lines under.
Ruby:
def pbDrawTextPositions(bitmap,textpos)
  for i in textpos
    textsize=bitmap.text_size(i[0])
    x=i[1]...
Read more about this resource...
 

Mr. Gela

Elite Trainer
Member
Posts
140
#2
Aahh. This was asked before on Discord earlier this week. Glad to see you making a tutorial about it.
 
Top