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 / [SOLVED] Help, This bitmap function will not work with a array

Author
Message
locecode
4
Years of Service
User Offline
Joined: 11th Apr 2019
Location:
Posted: 19th Apr 2019 09:56 Edited at: 19th Apr 2019 21:25
-SOLVED- So I am using a tut from the game creators for bitmap fonts

it is like this

functions




Then I am creating the text before the loop like this




Now I am displaying the text as so, but it will not show on the screen because of the array.



But It will show up on screen if only applied to one player like this



Now when I put it into a array like



It will not display as it always is hidden, the array will not work , will not display the text, why?

The author of this post has marked a post as an answer.

Go to answer

CSL
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: USA
Posted: 19th Apr 2019 15:12 Edited at: 19th Apr 2019 15:12
If the text1 property is a string you should surround the 0 or 1 between quotes:

thisObject(players).text1 ="0"
or
thisObject(players).text1 ="1"

Make sure to do this on the if statements as well.
CSL
locecode
4
Years of Service
User Offline
Joined: 11th Apr 2019
Location:
Posted: 19th Apr 2019 17:18 Edited at: 19th Apr 2019 17:20
Its not a string,

This is how I set it up

text1 as integer

or

locecode
4
Years of Service
User Offline
Joined: 11th Apr 2019
Location:
Posted: 19th Apr 2019 21:04
This post has been marked by the post author as the answer.
Ok, so I figured this out.

I needed to hide the font with a trigger event and not a programed one.

Showing it worked, but hiding it would not till I set a distance formula to close the bitmap as so.



So basically I show the font with a object collision, then I hide the font with the distance formula.

Login to post a reply

Server time is: 2024-03-29 06:15:06
Your offset time is: 2024-03-29 06:15:06