Computer Science Canada Drawing a variable |
Author: | element4l [ Fri Sep 28, 2007 10:56 pm ] | ||
Post subject: | Drawing a variable | ||
Once again, I come back with another question. Lets say I wanted to draw some stats in the upper right corner of the window, so the user can keep track of their health and money etc. How would I go about doing that if they're variables? I've tried just doing
but it won't accept the variable since it should be inside quotations. You guys are the best, any help would be great ![]() |
Author: | HeavenAgain [ Fri Sep 28, 2007 11:11 pm ] | ||
Post subject: | Re: Drawing a variable | ||
im assuming the variable, health, that you used is a int variable? so inorder to draw font, the thing that you want to draw must be a string. so make a ummm string variable for health see example below
the key to this is intstr, and strint, and also, Font.Draw is for string only. ![]() |