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 / hep needed

Author
Message
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 30th Aug 2006 23:01
i seem 2 not be able 2 texture the ground wat codes should i use
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 30th Aug 2006 23:27
Look up PREPARE MATRIX TEXTURE

Also check out the tutorial: http://developer.thegamecreators.com/?f=t02/bm_tutorial_24

Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 31st Aug 2006 00:14
Also try to find a book about how to write properly.

Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 31st Aug 2006 03:50
Quote: "Also try to find a book about how to write properly."


1nd33n.

Talking about books check out the hands on darkbasic vol 1 and soon (i hope) volume 2.

Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org
Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 31st Aug 2006 05:10
do you have a matrix or box for the ground?

Mysteries Surround You
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 31st Aug 2006 05:49
For a MATRIX, use PREPARE MATRIX TEXTURE. For a box or any other object, use TEXTURE OBJECT. Highlight a command and press F1 in the editor to look it up.

sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 09:16
does the page you suggested work with dbp as i am using tht and how do i actully load the texture after i hav prepared
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 31st Aug 2006 11:33
what code do you have to make the ground? if you give code it's always easier for people to help you

RIP Dimebag
http://db1games.topcities.com
(used to be demonsbreath)
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 31st Aug 2006 16:48
Yes it does work. If you read the entire tutorial (the page I sent you) it shows you how to texture the Matrix.

Step 1
Make the Matrix


Step 2
Load the image


Step 3
Prepare the Texture
Using the "prepare matrix texture" command it will take an image and split it into sections. If you only have a image that has 1 texture you would use it like so


Step 4
Add the texture to each tile on the matrix


Step 5
Finally we have to update the matrix


Please correct me if i am wrong as i havent tried this in darkbasic or anything (at work atm)

Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 20:05
thx i will try tht as i am making an rts this is the ground so far i have the sizes done how do i do the units like an rts or do u program them the same as rpg charecters just different controls
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 20:10
by the way this is my make matrix code


sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 20:38
i am just trying the code u sent
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 20:41
i get an error saying


any ideas on fixing the code (by the way it is the 1 u suggested)
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 31st Aug 2006 21:16
Here are some helpful hints.

1. Spell correctly, it is very hard to help some one who cannot even put the word "one" or "you"
I doubt everyone here is as kind as myself when they see spelling like that. So spell your words out.

2. Use the EDIT POST in the forum instead of making 3 or 5 different posts. Post count does not matter here.

3. Press F1 while in darkbasic's IDE. Read the help manual, almost every command is in here and they tell you how to use it.

4. Follow tutorials, I sent you a link that went fully into all of the things you needed. Take some time and follow them, don't expect others to give you full code.

With all that said (hope i didnt cross the line), download the example from this post. All i did was change the number 10 in the SET MATRIX TILE to a 1.
The last number is the tile you want to use from the PREPARE MATRIX TEXTURE.

I am using 1 because we only have 1 tile, if we had 2 (grass and sand) 1 would be grass, 2 would be sand if they are from left to right.

Sorry to give you a little lecture but I hope you learn something

Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org

Attachments

Login to view attachments
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 31st Aug 2006 21:22
thanx i will try that

Login to post a reply

Server time is: 2024-11-26 11:20:41
Your offset time is: 2024-11-26 11:20:41