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.

Newcomers DBPro Corner / [Help] Function Error (Too long to post in topic subject)

Author
Message
Mudbud Productions
13
Years of Service
User Offline
Joined: 1st May 2011
Location: Cloud 9
Posted: 7th Apr 2012 08:40 Edited at: 7th Apr 2012 08:45
Hello,

I was digging through my mass junk drawers and found my DarkBASIC Pro Studio case, which I bought and used for like a week.. Now I decided to jump in again. Long story short, I was tinkering with functions that change TEXT and stuff and was trying to make a Shadow effect on text, now the thing is, what do I assign as the RGB color to the variable?

Code:


Thats the function, now when I use it, the only color displayed is the first color (foreground) and the shadow is the same even though I selected a different color. Here's my mini program:



So here I have the text color as RED and the shadow color as BLACK. Yet onscreen the text and shadow is both RED.... What did I mess up on this time lol



Thanks
Venatusio
12
Years of Service
User Offline
Joined: 6th Mar 2012
Location:
Posted: 7th Apr 2012 09:03
Hi,

I am new to DB but I think I can see your problem.

The ink command is INK foreground, Background. I don't think background refers to shadow colour. (which I guess is why you are using the offset to make the shadow).

You are calling the shadow text which you have offset by a few pixels with the same colour: txtcol

Try this:



Hope that is what you are after.
Regards,
Venatusio
Mudbud Productions
13
Years of Service
User Offline
Joined: 1st May 2011
Location: Cloud 9
Posted: 7th Apr 2012 09:12
Hahaha I knew I made a noob mistake Thanks for helping me and making a quick reply.




Cheers

Login to post a reply

Server time is: 2024-11-23 20:26:06
Your offset time is: 2024-11-23 20:26:06