Game Development Community

Displaying Variables

by David Demaree · in Torque Game Engine · 09/06/2006 (9:37 am) · 3 replies

I want to display a variable number in the game through use of a gui. I tried to use the variable name ($points), but it just prints "$points" instead of its variable value.

Does anyone know how to make it print out the value instead?

#1
09/06/2006 (10:03 am)
@$points
#2
09/06/2006 (10:05 am)
Oh yeah, don't use ""

E.g.

$points = 12;
echo("","My value = " @ $points);
#3
09/06/2006 (2:40 pm)
Thanks, Tim. I was really looking for something more like:
http://www.garagegames.com/mg/forums/result.thread.php?qt=25082
but I don't think I explained myself very well.

Between your post and that thread I got it figured out though. =)