How to display a string on the screen?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

How to display a string on the screen?

Post by sheamkennedy »

I'm a bit rusty on how strings work. I have counter to begin counting up every tick in my autorun script. How can I now display this as a number in the top left of the screen.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Code: Select all

$1=""
append number(1, the counter)
show string at(1, 0, 0)  #id 1 at x=0, y =0
or

Code: Select all

$1=""
append number(1, the counter)
variable(sl)
sl := create text
set slice text(sl, 1)
put slice(sl, 0, 0)  # Optional since 0,0 is the default anyway
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

@TMC: Thanks!
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply