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.

2D All the way! / 2d tiles matrix and collision

Author
Message
DaedalusX
22
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 18th Jul 2004 23:55
i have looked at stuff about this in other threads but has been rather confusing. can anyine explain how this is done as i have tried someones mutilayer tiles matrix but it didnt work and im not sure where to start coding one. im trying to makle a game i have done most things but just need to learn this.

Daedalus
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 19th Jul 2004 02:01
It may be just me (and it probably is), but I am confused. I may not have the correct terminology.

Your question asks about 2d tiles, but also has matrix. I'm not sure I understand. If you use a matrix you are creating a 3d map. Are you referring to it as 2D because you are going to have the camera fixed, looking straight down at the matrix? Will you be looking at the matrix at an angle to give the look of 2d Isometric?

I usually use sprites for 2d tiles, or flat 3d textured plains. Can you tell me more about the benfits of using a matrix, and why this is considered 2D?

Once I am sure of what you are trying to do, I'm sure I can help you. Regardless, of the method used to display the 2d tiles you are still going to need a multi-dimensional arrray to store the tile positions. I'll try to help once I am sure i understand what you are trying to do.

Thanks
Zenasassem


DaedalusX
22
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 19th Jul 2004 07:06
sorry used to writing matrix. i ment 2d maps. i looked at ur mutlilayer example but i didnt understand it much and when i tried to edit it the layers didnt go togather.

Daedalus
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 20th Jul 2004 08:19
DaedalusX,

Please take a look at my thread 2d Principles with DBC/DBpro it's stickied at the top. After you get past the arrays it talks about using a multidemensional array for 2d maps. In Fact right now i posted the beginning of a map creation tool that the tutorial will walk people through how to build one. Let me know if that helps any, and if it's what you are trying to do.

If you have any questions I should be able to answer them.

~zen


Login to post a reply

Server time is: 2026-06-09 21:34:50
Your offset time is: 2026-06-09 21:34:50