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 / My new tutorial

Author
Message
truth is somewhere out there
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Nov 2005 00:31
here`s the first part of:
TUTORIALS:

BITMAP LOADING AND EDITING

SOUND LOADING, AND EDITING

SPRITE LOADING AND MOVEMENT

SPRITE COLLISION

LOADING AND PLAYNG AVI FILES

3D OBJECT MAKING, LOADING AND TEXTURING

3D OBJECT MOVEMENTS

CAMERA SETUP AND MOVEMENT

3D COLLISION


-------------------------------------------------

1.BITMAP LOADING AND EDITING

BITMAP`S IN DARKBASIC ARE USED FOR PICTURES LOADING AND SHOWING.
DARKBASIC ALSO HAVE SIMPLE BITMAP EDITING COMMANDS, LIKE BLUR,

FADE , MIROR , FLIP , SAVE AND DELETE.

BLUR-COMMAND IS USED FOR BLUR OF THE PICTURES

MIRROR-IS FOR MIRRORING OF PICTURES.

FLIP- IS FOR FLIPPING PICTURES

SAVE-COMMAND IS USED FOR SAVING ALL THAT IS ON THE

SCREEN INTO .bmp FILE (COULD BE USED AS SCREENSHOT COMMAND IN
GAMES)

AND DELETING FOR DELETING THE PICTURES OUT OF DARK BASICS
MEMORY(NOT DELETING THE FILE).

FOR LOADING A BMP YOU FIRST NEED TO PUT IT
IN THE SAME FOLDER WITH YOUR APPLICATION.

THEN TYPE THIS LINE INTO DARKBASIC CLASSIC/PROFESSIONAL

EDITOR :

LOAD BITMAP , “FILENAME.BMP” , BITMAP NUMBER

example:

LOAD BITMAP , “IMAGE.BMP” , 1

hint : “BITMAP NUMBER IS THE NAME OF YOUR BITMAP
SO WHEN YOU EDIT IT IN SOME DB COMMANDS “BLUR , FADE...” YOU CALL
IT BY THAT NUMBER YOU NAME IT”.

FOR BLURING YOU JUST NEED TO ENTER THIS LINE BELOW THE LOAD BITMAP LINE:

BLUR BITMAP , BMP NUMBER , VAULE

EXAMPLE : BLUR BITMAP , 1 , 3

hint : “vaule is how much you want to blur the bitmap”
Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 10th Nov 2005 03:07
Are you sure this is a tutorial? This seems much more like a bunch of random CAPS lock notes on bitmap loading. I have three suggestions.

1. Forget this tutorial, learn more DB, organize a tutorial much more carefully and then make one.

2. Fix this one immediatley

3. This one mainly goes to the newcomers. If he doesn't fix it don't use it.

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Nov 2005 04:51
Ugh... he just joined today and he's already posted a tutorial... not a very good first impression, dude.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Nov 2005 11:23
Quote: "BLUR BITMAP
This command will blur the contents of a specified Bitmap. You must specify a blur value from 1 to 6 to provide the intensity of the blurring. A blur value of 1 will perform mild blurring, up to a value of 6 that causes severe blurring. The greater the intensity of blurring, the longer it takes to perform. The time it takes to blur a bitmap is also dependent on the size of the bitmap. The parameters should be specified using integer values.

SYNTAX
BLUR BITMAP Bitmap Number,Blur Value
"


DB Pro Help file.

truth is somewhere out there
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Nov 2005 14:27
well it`s a start i started with easy stuff , i think
that a begginer (total) would like to start with
:
make object collision box 1 , -100 , -100 , -100 , 100, 100 , 100
texture object 1,1
do
if upkey()=1 then move object 1 , s$
but if you wanna wait a little than you`l get the rest
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 10th Nov 2005 17:57
its s#, not s$


truth is somewhere out there
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Nov 2005 18:03
and only S if you(i) like it.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Nov 2005 18:24
Newcomers look for nice organised tutorials. They have to be very very clear AND complete for someone that doesn't know anything about it.

It's nice of you that you want to help newcomers with coding, but tutorials has to be something that has to help them understand.

What is a bitmap?
What is it really used for? (Not just for displaying images on right?)

Or someone that has already heard about images:
You're saying that bitmaps are used for displaying pictures, what are images for then?

Or even small things can be deceiving:
- save image doesn't only export bmp, but also other extensions. Go look in the DBC features.
- Zotoaster's correction for example.
- your collision box code is not very complete. make object collision box needs 8 parameters, not 7. And it need also an object to "connect" itself to. (else it gives a "object does not exist" error)

Guess you're not trained enough to write a complete tutorial.

Immunity and Annihalation makes Immunihalation...
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Nov 2005 18:58 Edited at: 10th Nov 2005 18:59
Quote: "well it`s a start i started with easy stuff , i think
that a begginer (total) would like to start with"


One of the fundamentals of writing a tutorial is any code you post needs to work. You can't just sit there and think "I'm going to write a tutorial." and start a new thread 2 seconds after having that thought. If you just tried to run that code you'd see that (as Zotoaster pointed out) that "s$" gives you an error.

Any tutorial needs to be written offline, code tested, the text needs to be ran though a spellchecker, the tutorial needs to be shown to family and friends for grammer errors and ease of learning, then check the final draft for spelling again, restest all code, and finally post here.

When you say "tutorial" in the thread title... it also helps to know what you're talking about.
truth is somewhere out there
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 11th Nov 2005 14:18
this is a guess game (not explained how)
but still may help
remstart
-------------------------------------------------------
-------------- gues a number game ----------
-------------- by Dodic Ivan ----------
-------------------------------------------------------
This is just a simple game in witch you guess a number from 0 - 100
remend

number=rnd(100)
do
print "Guess a number from 0 - 100"
input number1
if number1 = number then print "YOU GUESED!"
if number1 > number then print "Your number is higher"
if number1 < number then print "Your number is lower"
loop
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 11th Nov 2005 15:45
truth is somewhere out there's master Piece Tutorial
>Contest:
-Load and edit pictures (Bitmaps?what about PNG? it's munch bether is you talk of the load Image comand)
-Sprite creation and manipulation (Sprites are related to Images so you should put it near.(Note: you don't load sprites, you load images, then you converto to pictures))
-Load and edit sounds and musics
-Using .AVI files
-Load, create and manipulate 3D Objects
-Setup the game's camera

Isn't bether like this? I can't continue cause I'm off to school but you should organize it bether. And the tuturials looks like there's not to munch information. You should make the come and then explain what each command and line does


True Phantasy
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 11th Nov 2005 16:48
There is a master piece tutorial. Ruccuss did and is doing it. Hoping he does an RPG next.

- Do it, Do it Right, Do it right now..
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Nov 2005 20:05
Quote: "this is a guess game (not explained how)
but still may help
remstart
"


At least put any code you write for your (cough, cough) tutorials in code snips.

[ code ]
Your code here
[ /code ]

Take off the spaces between the brakets and you see:


Just to let you know... writing code and posting it is not considered a tutorial when you don't explain anything in text or by rem statements in the code.
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 11th Nov 2005 21:13
Ohh no... did my RPG tutorial force so many newbs to make tutorials?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 11th Nov 2005 23:12
Too many n00b tutrials these days... people only want tutorials from experienced people, not people saying "what do you think of my first tutorial?", Tutorials aren't projects, or games, and must be made by someone who knows what it will teach.


RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 11th Nov 2005 23:25
Stop.

Really just Stop!

I dont care if you want to write some tutorials to try and get some attention or possibly learn for yourself go right ahead, but don't liter the forums with these horrible tutorials while you're at it. This is bad teaching, it will give newcommers the impression that DBPro has bad tutorials, and will teach newcommers very bad habbits in programing that you think are right. Make a few games, create some functions, heck help a few people with some BASIC problems that you're confident you can help them with, then maybe, MAYBE if you really think you're good enough attempt to write a tutorial.

It seems ever since I started my tutorial people have been writing tutorials like crazy, I don't know why maybe assuming it will gain them popularity. That's the wrong reason for writing a tutorial, do ti to help people, and only do it if you CAN help people.

Until then, STOP.

truth is somewhere out there
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 12th Nov 2005 00:16
Hello everybodi , there is a new chat site
witch containes db pro discussion room .
you just hafe to join , and you don`t have to wait
until moderators read messeges , i becomed one , but
i don`t have control on your posts so you can post whatever you like.
i strongly suggest you to join , there is lots of db
codes,tutorials and so...
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 12th Nov 2005 01:54
wtf?


RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 12th Nov 2005 02:03 Edited at: 12th Nov 2005 02:04
Truth, Please read this. PLEASE

One of two things are going on here. Either 1 you're an ignorant little kid that has no interest in programming and just found this forum through possibly a friend or just a search, and is spamming it for the pure enjoyment of making other people's lives miserable.

or

You're a true newcommer and are just very dense. Please, I think im speaking for everyone when I say stop positing links to your forum, your chat, and your tutorials. They don't help anyone, and are spamming the forums like crazy. You've made what, 7 accoutns now? More? Just because everytime you make a new one someone finds out its you and you go and do what, make another new one.

Im asking you kindly, stop posting this useless junk, if you want to learn to program go for it but stop wasting our time.



To everyone else

When you see a thread made by this user, or a thread made by a different username that you KNOW is this user and you know that it is spam such as links to his tutorials, forums or chats, don't respond. He's doing this for attention, if nobody responds he'll stop. Ofcourse he'll undoubtedly read this aswell and will urge him to make more spam but eventually he will stop. If he asks a true hole-hearted question or posts something useful then go ahead and congratulate/help him, but otherwise if tis the same old crap like this just DONT RESPOND! The lack of communicaiton will make him stop.

Thanks
- RUCCUS

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 12th Nov 2005 03:00 Edited at: 12th Nov 2005 03:00
aww man... two noobs in one day.. I can't take it!

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 12th Nov 2005 03:23
Quote: "there is lots of db
codes,tutorials and so... "


Did you make them?


Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 12th Nov 2005 03:34 Edited at: 12th Nov 2005 03:35
Quote: "but otherwise if tis the same old crap like this just DONT RESPOND!"

Let's listen to Ruccus and ignore this thread (even though I'm not ignoring now).

"There are no stupid questions, just a lot of inquisitive idiots."
MMORPG programs
18
Years of Service
User Offline
Joined: 12th Nov 2005
Location:
Posted: 15th Nov 2005 02:38
i know its retarded. I'm new to darkbasic but listen you have to have an origional idea before you start writing it. you have to make sure its good and you cant just write it otherwise you'll just embaress yourself..... and you shouldnt state what it says in the manual or whats obvious. Duh mirror means mirror, flip means flip, blur means blur, and almost everyone knows waht bmp is.
also dont write it so spread out
LOAD BITMAP , ?FILENAME.BMP? , BITMAP NUMBER
load bitmap, (filename),(obj#)
it actually makes a big difference. and im not making corrections for you to keep writing tuts, im saying stop now and do a rough draft or something dont just look at the book and copy...

8. According to plaque, "When Bush gives order, nod politely, wait to hear what Cheney says"
3. The plane's sole security feature: an angry kitty
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 15th Nov 2005 04:07 Edited at: 15th Nov 2005 04:09
Look truth is somewhere out there I tried to write a tutorial but then some wiser person on this forum explained to me that begginers should'nt try to write tutorials. I have not writen one. And for a begginer like you and me it is just a waste of time that could be used programming your latest blockbuster game!!(I like to be positive )

I hope you don't take this as a flaming, I don't mean to flame you.

Vader

Opps! Did'nt quite finish reading your post RUCCUS
Sorry!

You Don't know the power of the Dark Side!!
Oh but I do!!
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 15th Nov 2005 14:26 Edited at: 21st Nov 2005 18:29
<Edited to be less harsh>

I didn't want to make people feel like I was yelling at them that wasnt the tone I had when I wrote it but I can see how it came out like that, go ahead and respond to this person's posts, just be aware that the more attention he gets the more spam loaded posts he will make advertising his site, go ahead and read on below and you'll see that yes indeed there is another posts to another forum.

Anyways it doesnt affect me, I'll be ignoring all of this user's spam, hence why I'm editing instead of posting so as not to risk bumping this up again for more replies. Sorry for the unintended harshness.

Halo Man
18
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 15th Nov 2005 23:34
Quote: "number=rnd(100)
do
print "Guess a number from 0 - 100"
input number1
if number1 = number then print "YOU GUESED!"
if number1 > number then print "Your number is higher"
if number1 < number then print "Your number is lower"
loop "





I think your number guessing game is wrong(i have no idea, trying to sound smart, lol)

Couldn't you also do this:


http://www.runescape.com

4 out of every 5 people will look at
this and apperantly your one of them!
Fox Dark Master
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Portugal
Posted: 17th Nov 2005 21:16
For god sake, If someone want to answer, then that person is free to answer...
You've a problem with that?


True Phantasy
Dodic
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 21st Nov 2005 16:47
Maybe you guys could listen to what I said and STOP responding. Dont even respond to this post right now saying sorry, just stop.



and you sad to that :
For god sake, If someone want to answer, then that person is free to answer...
You've a problem with that?


you are right , i have right to make something stupid , i mean i put some work to it and they just say ... about it.
i won`t make anymore tutorials .

p.s. i am made a darkbasic forum (free for all to use)http://dodica.proboards75.com/index.cgi
first ten are moderators.

you only live once , but you die twice
born and death!
Dodic
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 21st Nov 2005 16:49
Quote: "Maybe you guys could listen to what I said and STOP responding. Dont even respond to this post right now saying sorry, just stop."



i think this isn`t allright to say , i mean people have right to relpy , and becouse of my message i didn`t eaven comed to controling part , nider to 3d object movement.
if there wasn`t your coments , now i would have finished my tutor.

you only live once , but you die twice
born and death!

Login to post a reply

Server time is: 2024-09-24 09:33:40
Your offset time is: 2024-09-24 09:33:40