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 / Challenge bouncing box

Author
Message
Jim
23
Years of Service
User Offline
Joined: 10th Feb 2003
Location: United Kingdom
Posted: 18th Mar 2003 23:12
Please can some 1 help me. I made a programme in QBASIC the other day where boxes bounced of each other because of the pixel colour using the point command. Eg if not bakcolour (checking 8 points on a square, corners and middle edges,) then bounce. I tried to replicate this in DB but the point does not return sprite colour. Why???? I do not know. Perhaps its the way DB is programmed but I think a command description should actually do what it says eg

Point command:

"This command will return the pixel color value from the screen at the specified Coordinates. The
parameters should be specified using integer values. You can also read from bitmaps by using the SET CURRENT BITMAP command." - Please fix in next patch.

O from the screen eh? Well where is the invisable text that states only returns shite.

How else am I supposed to check which side of the box has been hit if not with the point command.

Any here is my snippet please add two of you own texture files to make work.

The Universe has infinate possibilities. So do YOU!

Login to post a reply

Server time is: 2026-07-11 12:01:40
Your offset time is: 2026-07-11 12:01:40