about displaying messages with a changing int

Non-platform specific questions.

about displaying messages with a changing int

Postby poopbrigade » Wed May 26, 2010 5:42 am

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
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score

Re: about displaying messages with a changing int

Postby Thanx » Wed May 26, 2010 11:02 am

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:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: about displaying messages with a changing int

Postby poopbrigade » Thu May 27, 2010 10:31 pm

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
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score

Re: about displaying messages with a changing int

Postby Thanx » Fri May 28, 2010 1:49 pm

:D Looking forward to seeing your game! :wink:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron