Page 1 of 1

need to cycle through letters in a text actor

PostPosted: Sun Jun 08, 2008 12:53 am
by feral
sorry guys, but strings and chars are still a weak point of mine

i just need a quick bit of code that will cycle through each letter of the alphabet and place the new letter in the textactor each draw..

ie:
text actor shows A
then shows B
then shows C
but only one at a time..

preferably on a key down event to move to next char ( forward and reverse)


thanks in advance ( sorry not being lazy , just not good at chars yet)
feral

Re: need to cycle through letters in a text actor

PostPosted: Mon Jun 09, 2008 3:56 am
by catacomber
I think the easiest way would be to use the Ascii characters--set your variable for the letter A to it's Ascii counterpart (&#065) and then set up a function to increment that by 1.

Re: need to cycle through letters in a text actor

PostPosted: Mon Jun 09, 2008 4:34 am
by feral
bah :( thanks anyway, but I nutted it out eventually - this thread can be closed

feral