
-----------------------------------
TechLacky
Sat Jan 14, 2012 10:43 pm

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  :cry: 

I've also tried the ++ thingy but same thing... (doesnt work)


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!

-----------------------------------
Raknarg
Sat Jan 14, 2012 11:27 pm

RE:How do i use Font.Draw on a changing var?
-----------------------------------
Font.Draw (intstr (a), 1, 1, font, black)

-----------------------------------
TechLacky
Sun Jan 15, 2012 2:27 am

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!

-----------------------------------
Raknarg
Sun Jan 15, 2012 4:19 pm

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 :P

-----------------------------------
Aange10
Sun Jan 15, 2012 4:58 pm

RE:How do i use Font.Draw on a changing var?
-----------------------------------

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:)

-----------------------------------
Raknarg
Mon Jan 16, 2012 7:12 pm

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
