Sign in to follow this  

Output from the variables with allegro.

This topic is 3680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i know only one function in allegro to output text(textout_ex) and i havent been able to figure out how to output data from variables. Ive heard a lot about a textprintf function that only applies to C but what can i use with my dev C++ to out a score etc. to the screen?

Share this post


Link to post
Share on other sites
textprintf_ex() can still be used in C++ as long as you don't use C++ types in the call. Ex: textprintf_ex(/* stuff */, "%d", score); if score is an integer.

Share this post


Link to post
Share on other sites
Thanks. You obviously know what you're talking about but im still clueless. I just tried to implement what you said and it told me something like invalid conversion from const char. Can you give me a working example of an instruction outputing the score with textprintf in C++?

Share this post


Link to post
Share on other sites

This topic is 3680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this