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 / Chess board squares

Author
Message
RusWilson
21
Years of Service
User Offline
Joined: 2nd Nov 2003
Location: Fayette, AL
Posted: 3rd Nov 2003 06:22
If you have a plain textured with a chess board, what's the best way to find out which square was clicked on?

I'm thinking about having corner of plain at 0,0,0 and getting x, z location of where plain was clicked on, then dividing that with the width of the squares to get which square.

What's the smallest unit size in DarkBASIC Pro? I'm thinking I'll need 8 times this size to get an 8 x 8 chess board.

Thanks for any help getting started,

RusWilson

DarkBASIC Pro / Win XP / GeForce4 Ti4400
genius
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 3rd Nov 2003 06:29
You can make a matrix 8x8 instead of a plain.

Login to post a reply

Server time is: 2024-11-25 14:38:01
Your offset time is: 2024-11-25 14:38:01