How to display a variable?


#1

I got kinda bored during class, and decided to try to make a 3d turn based RPG battle, but there’s one problem that i can’t figure out how to solve. I want to have a variable show up in play mode, so that the player can see the enemy’s health and whatnot, like in Scratch. If there’s any way to do this, please tell me.


#3

Hi @Edward_Wilson,

The best way to display variables is to write them into a text item with the set text - block. Below you can find an interactive example that you can remix by pressing the remix - button. :slight_smile:


#4

Thanks, man! probably should’ve thought of that.