Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Why won't text show?

Author
Message
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 30th Jun 2013 07:49
I have a menu screen with a background animation loop (video clip) and then two sprites each with the words Save and Load respectively. Once the user clicks on the area over Load I want to show a list of available saved games.

I tried deleting the animation and turning off the sprites, but I still cannot see the text of the saved games list!!

The saved game list module works fine when I run it by itself. I can see the list. But the text just won't show up after the Save/Load menu.

Yet in another part of my code, I do have text showing while there is an animation playing and sprites on the screen. So I cannot understand why the aforementioned won't work the same.

I tried to use "SYNC" thinking I might need to refresh the screen, but then nothing shows up at all.

Any precedence to this? Are there some tips and/or tricks to this?

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
PirateJohn
14
Years of Service
User Offline
Joined: 4th Aug 2011
Location: California
Posted: 30th Jun 2013 08:38
When I have trouble with text showing, I use the DRAW SPRITES LAST command. Also, you have to redraw the text to the screen before every SYNC command.
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 30th Jun 2013 09:13 Edited at: 30th Jun 2013 09:15
Okay. This is really bizarre!!

I copied the code to a different project... and now it works!

When I find out what the heck is going on, I will let everyone know for future reference. Now, I am 3 hours past my bedtime trying to figure out this anomaly.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 30th Jun 2013 11:29
If you want someone to look at it for you it would be a good idea to make the smallest possible code reproducing the problem and post it with required media, if any. Remember, as little code as possible is good, you don't need to put any functions in there that are not related to reproducing the problem, then it is easier to get a lot of people to look at it

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 30th Jun 2013 17:11
Anomaly solved.

Turned out that the working code wasn't all the code. I started copy and pasting from the file giving me trouble until I experienced the anomaly once again.

It was the BACKDROP ON command! When I use BACKDROP OFF before the text display, all works fine.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)

Login to post a reply

Server time is: 2026-07-06 20:31:32
Your offset time is: 2026-07-06 20:31:32