Help needed !

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Help needed !

Post by turshija »

With RenderCharExpression ....
when i have text written, how do I change the size of the first character for example ? i want to make first character scaled big and all others small or something like that and control it using global variable ... But i cant find out how ... Can I access letters separately somehow and change its attributes ?
for example Char[1].Scale , Char[2].Scale and stuff like that ?
Cheers
Boris
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

You can use the CharI-property. This holds the current character index.

Something like this:

Code: Select all

if (CharI==0) {
  //First character
  CharScale=2.0;
} else {
  //rest of string
  CharScale=1;
}
User avatar
turshija
Posts: 127
Joined: Sat Feb 17, 2007 9:26 am
Location: Novi Sad, Serbia
Contact:

Post by turshija »

thanks, ill try it :)
Post Reply