I'm attempting to make a little HUD which outputs the number of fairies collected (yes we are going to change them to something other then fairies latter
) However I'm running accross alot of problems, mainly the text likes to output itself on the top of already made text.
With my limited knowledge from 2 days of using irrlicht, I've tried coding it as below
Code: Select all
wchar_t* hub_text = L"Faeries Collected: ";
hub_text += fairies_collected;
gui::IGUIStaticText* collected = env->addStaticText(
hub_text,
core::rect<s32>(0,0,300,300), true, true, 0, -1, true);
I've also tried a number of other ways of setting out the code, at best it simply writes the new textbox over the old one instead of just updating it, at worst it crashes after collecting a single fairy. The other problem is the little pale window the text likes to appear in, maybe static text boxes just arn't the right way to do this... oh, and of course I've set up the variable liek this as global:
Code: Select all
gui::IGUIStaticText* collected = NULL;
Thanks in advance for any help