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 / Grid System

Author
Message
Black Mesa
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 8th Aug 2006 00:37
I was wondering what your thoughts are on the best way to make a grid system. I want to make a grid in my program that can be resized and that is used to aid in the postioning of objects by letting them snap to grid points. Whats the best way to go about this? I thought it might be matricies but Im not really familar with them and the help file wasnt too helpful. Are there any good tutorials on using the matrix commands? Thanks.
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 8th Aug 2006 03:28
Black mesa i need the same thing. i am making a 2D tile editor and i wanna make a grid ><
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 8th Aug 2006 04:35
Take a look here for a way to snap to the grid.



I don't know matrix either, sorry.

common people are walking in line.
CreamPie
18
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 8th Aug 2006 04:52
Black Mesa,

Are you using DarkBasic Classic or Professional?

>-Formerly known as NanoBrain-<
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Aug 2006 13:12
You don't have to use a matrix. Sure that'll give you a grid visually, but your ground can be anything. Take a look at this thread, I posted example code of snapping to grid.

http://forum.thegamecreators.com/?m=forum_view&t=86096&b=7

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike

Login to post a reply

Server time is: 2024-11-26 13:51:09
Your offset time is: 2024-11-26 13:51:09