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 / 2d tile scrolling

Author
Message
CrayZemon
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: United States
Posted: 16th Jun 2003 22:26
Yep, I recently downloaded the trial version of Dark Basic. Yes, it's cool .
My third project that I've assigned myself involves scrolling a ship (controled by the player) over a 2D scene. My previous projects did not scroll. My previous experiences with programming tell me that I should create a 2Dimensional array for the scrolled environment.
It will then extract then tiles and display them like so.

Because of the nature of the tiles (their size and numberous quantity and flat environment) I will not be using a matrix, but was thinking of using an array of polygons boxes. Here's my question:
"how difficult is it to make polygons transparent like sprites?" I would be using this for layered scrolling, and for objects like the ship and other objects. Any suggestions or comments, please?
"I need gopher-chucks!!"
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Jun 2003 00:54 Edited at: 17th Jun 2003 00:56
RGB(0,0,0) to RGB(10,10,10) can be treated as transparent.

You then set the texture properties, as displayed in the help, and as currently forgotten completely by myself right now :-s

It might be worth using Plains rather than boxes - easier to handle the textures, and less polygons. I don't quite understand the 3D objects in a 2D scrolling world thing that you're doing, but I've based my answer on this info.

Thanks in advance.
All the Best,
StevieVee
CrayZemon
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: United States
Posted: 17th Jun 2003 02:15
Well, I looked into the "set object texture" command in the help files and it says nothing about transparency.
Yes, you are right, plains are much more efficient.
Because of my frustration with the 3D world here for gathering transparency, I've moved on to an identical project that uses only 2D, meaning sprites and images. I've read only a little about tile-based engines.

This is definately newbie-ish, but I have a problem with this code in the 2D version of the project.



It constantly tells me that I've accessed outside of the array's bounds and will not complete the for loops. I've programmed with
for loops with C++, and Basic, and Perl and have never gotten a problem like this ! Advice and comments on both the 3D texture transparency and this one greatly appreciated.

"I need gopher-chucks!!"

Login to post a reply

Server time is: 2024-11-24 19:08:17
Your offset time is: 2024-11-24 19:08:17