|
Post by Xenith on Jun 29, 2004 19:14:41 GMT -5
okay i'm now making a name selection area, where you chose letters to put into your name, how would i got about this?
|
|
|
Post by IsmAvatar on Jun 29, 2004 22:16:41 GMT -5
i figure one way (and probably the most effecient) would be to use a 2-d array for all the letters. think of 2d arrays like this:
varname[x,y] that's how you map out the letters.
|
|
|
Post by Xenith on Jun 29, 2004 23:22:42 GMT -5
hmm... how do arrays work?
|
|
|
Post by IsmAvatar on Jun 30, 2004 13:10:05 GMT -5
what do you mean how do they work? Read the manual or check out Arrays and their uses for more information on arrays.
|
|
|
Post by Xenith on Jun 30, 2004 14:10:33 GMT -5
oh i see now, but i'll probably just use that to store his name, for now i'm trying to figure a way to enter the name like in, final fantasy or dragon quest, where they have a screen with all the letters then you just enter it,
by the way, i want to show you my menu system, i'll send it to you separate from the rest of the game since i know yu have a slow connection
|
|
|
Post by IsmAvatar on Jun 30, 2004 19:28:47 GMT -5
I'll make an example to show what I mean.
|
|
|
Post by Xenith on Jul 1, 2004 21:56:27 GMT -5
okay
|
|
|
Post by IsmAvatar on Jul 2, 2004 9:43:17 GMT -5
|
|
|
Post by Xenith on Jul 2, 2004 13:48:18 GMT -5
thanks, but instead of drawing text, i used sprites for text, is there a way for my to change this?
but for me to use this i'll have to study it until understand it fully,
man you're good
by the way what is xx and yy?
|
|
|
Post by IsmAvatar on Jul 2, 2004 20:25:16 GMT -5
xx and yy are variables I use in the array. The arrays I showed you have 2 dimensions (and x and a y axis), so I referred to these 2 dimensions as xx and yy. What are xx and yy's values? well, it's set by a loop. it all depends on what cycle through the loop it is (and the loop's rules).
And just because I know loops and arrays doesn't make me good. It makes me different.
|
|
|
Post by Xenith on Jul 2, 2004 22:38:02 GMT -5
it's not just the loops and arrays that make you good, it's everything, you've helped me out alot,
and sometimes i think that i'll never understand all of this programming stuff, that's why i ask you
and as i was asking' do you know how i would use sprites instead of text?i'm talking about sprites that look like text, by the way i want to show you my menu system, i'll email it to you if it's alright with you,
don't forget my question
|
|
|
Post by bobop10 on Jul 12, 2004 23:21:17 GMT -5
interesting.... now would the variable global.name be equal to the name that is entered in the box? also can you make this a script and post it on your website? I bet alot of people would appreciate that.
p.s. your really helpful
edit: this question is directed to Ism
|
|
|
Post by IsmAvatar on Jul 13, 2004 12:17:14 GMT -5
1) to use sprites instead of the letters, simply remove the array loop for drawing the text, and put in your own little sprites. Or do you mean it's an actual sprite-font? Cuz then you'd simply you the corresponding function which you can find in the MANUAL.
2) global.name is the name of the user, yes. I thought that was quite clear.
3) No. It involves a lot more than just a couple of scripts. You have to decide how to line up the text and such. Not to mention, then I'd have to document it, and lord do I hate documenting loops and arrays! I could make it an example for my site, though.
|
|
|
Post by bobop10 on Jul 13, 2004 13:21:58 GMT -5
o yea a example thats wat i meant ;D
|
|
|
Post by IsmAvatar on Jul 13, 2004 21:36:37 GMT -5
I'll consider it.
|
|