Page 1 of 1

about displaying messages with a changing int

PostPosted: Wed May 26, 2010 5:42 am
by poopbrigade
hey can any1 help me out with this problem I want to display this string=>LEVEL + an INT that is constantly changing like LEVEL 1, LEVEL 2 LEVEL 3 and soon so help please thanx in advance. :D

Re: about displaying messages with a changing int

PostPosted: Wed May 26, 2010 11:02 am
by Thanx
code function:
Code: Select all
sprintf(levelshowactor.text, "Level %i", levelnum);

Not much more to say, the paramaters explain everything about the function. It allows you to put variables into a string with the directives %i, %d, %s for integers, floating point values (fractions), and strings respectively. Just don't forget to add the variables as additional parameters in the right order after the string.
:wink:

Re: about displaying messages with a changing int

PostPosted: Thu May 27, 2010 10:31 pm
by poopbrigade
thanx 4 the help thanx I'll be adding you to my credits in my game and I hope I don't keep stalling its progress. hehehe
:D

Re: about displaying messages with a changing int

PostPosted: Fri May 28, 2010 1:49 pm
by Thanx
:D Looking forward to seeing your game! :wink: