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 / Problem with ink and text

Author
Message
fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 4th Aug 2003 22:57
Hi All,

Im trying to draw a symbol with a drop shadow by using
the ink and text command. Im getting some strange results.

I stripped this code (and simplified it) from a 2D game im trying
to make.

Any hints welcome


- fruNNik


PS:
I may have more problems with ink then this one, but i think this may
be the root problem. IE sometimes it seems as if the ink command doesnt set the right color...
fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 4th Aug 2003 22:58
Erhm, i forgot to say the problem is:
Where is the letter 'A' ?

Eddie Gordo
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 4th Aug 2003 23:13
uh...what do you mean wheres A...you didnt define what was to be printed i think you told it to print the ASCII of 65 + the number of the FOR NEXT command...Does it show you B? cause if 65 of ASCII is A then it will star by adding 1 to it and you get B to start off with...i just dont get what this is...

Visual Programming Studio ORANGE
Replacement IDE for Dark Basic Professional...
(Will Be Availeable When This is Removed)
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 23:32
I changed it slightly by removing the sync on and it worked fine, you could also have put the sync in a do loop to make the output visible.

fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 4th Aug 2003 23:33
The code is meant to print the characters "A" to "F" in white on a black background.
"B" to "F" do show up but "A" doesn't ...

- fruNNik

fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 4th Aug 2003 23:40
haggisman, i removed the sync on ... but it still doesn't show,
if i remove the rem statement before the print "" it does work ... ?

thx
for the response

further simplified code:



fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 4th Aug 2003 23:43
hmm,
I got it working by putting all in a loop with sync at the end,
still think it's weird that it fails on the 1st call...

- fruNNik



the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 5th Aug 2003 00:11
The sync command sometimes doesn't work the first time it is used.
use
sync on : sync
at the top of the code.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 5th Aug 2003 00:19 Edited at: 5th Aug 2003 00:20
sync will fail on the first call, a known bug



works fine, cheers.

Mentor.

what is going on tonight every time I post somebody gets there first

fruNNik
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location:
Posted: 5th Aug 2003 01:15
thank you all

- fruNNik

Login to post a reply

Server time is: 2024-09-20 17:37:07
Your offset time is: 2024-09-20 17:37:07