Computer Science Canada

How do i use Font.Draw on a changing var?

Author:  TechLacky [ Sat Jan 14, 2012 10:43 pm ]
Post subject:  How do i use Font.Draw on a changing var?

What is the problem you are having?
Oi, can enyone help me with turing?

I want to know how to use Font.Draw on a chaning var:

Describe what you have tried to solve this problem
Ok, so i've tried trying to make the var into a string using instr
but i dont know how to do that either Crying or Very sad

I've also tried the ++ thingy but same thing... (doesnt work)

Turing:

var a : int
var font : int
a := 0
font := Font.New ("Arial:20")

loop
a := a +1
%Tried putting "Font.Draw (" "+a+" ", 1, 1, font, black)" but doesnt work...  %
end loop


help would be greatly appreciated, Thanks!

Author:  Raknarg [ Sat Jan 14, 2012 11:27 pm ]
Post subject:  RE:How do i use Font.Draw on a changing var?

Font.Draw (intstr (a), 1, 1, font, black)

Author:  TechLacky [ Sun Jan 15, 2012 2:27 am ]
Post subject:  Re: How do i use Font.Draw on a changing var?

0.0 wow... you're amazing man! XD

thanks for making me feel like a super noob by making look so easy but i just never understood it =_=

XD jks, this REALLY HELPED, THANKS!

Author:  Raknarg [ Sun Jan 15, 2012 4:19 pm ]
Post subject:  RE:How do i use Font.Draw on a changing var?

Lol no problem. Just remember that trying random things generally doesnt work for programming issues. Just look at what you have (not necessarily what you want), and what you're trying to do. In that case, you probably could have figured it out.

Anyways, it's all the learning process, I had to go through the same thing.

In fact, when I started, it took me about a week to understand what a for loop was and how it worked Razz

Author:  Aange10 [ Sun Jan 15, 2012 4:58 pm ]
Post subject:  RE:How do i use Font.Draw on a changing var?

Quote:

In fact, when I started, it took me about a week to understand what a for loop was and how it worked Razz


I understood it quickly, however, it took me two weeks before I was comfortable with arrays:)

Author:  Raknarg [ Mon Jan 16, 2012 7:12 pm ]
Post subject:  RE:How do i use Font.Draw on a changing var?

Haha yeah I was just really bad to begin with XD after I got that, it started to fall in place


: