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.

DarkBASIC Discussion / Ok i have an idea but i need some help

Author
Message
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 26th Jun 2007 19:08
im thinking about getting it,,,its only like $15 so its not much...

bought~_~

Alienmaster
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 27th Jun 2007 01:50
Perhaps I am mistaken here, but I thought that the expansion pack is included in the 1.13 version. When I go here http://darkbasic.thegamecreators.com/?f=upgrades I don't see any charges listed for a patch to upgrade to v1.13.

I would load it in and see; you've got nothing to lose.

LB
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 27th Jun 2007 01:59
i did
it says it need enhanced mode


i cant use it
i do have v 1.13 though

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 27th Jun 2007 02:22
try downloading the latest release of darkbasic, check your order history and click the download link, i'm not sure, but the enhancement pack might be in that release..



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 27th Jun 2007 02:27
ok well i do have darkbasic pro but whenever i try and do something with it it says like

Quote: ""Name of program here" has encountered an error and has to abort"


so i never use it

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 27th Jun 2007 03:58
i'm not talking about darkbasic pro, i'm talking about the latest release of dbc, you can download it from your order history (if you ordered dbc from tgc)



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 27th Jun 2007 05:30
u talking about 1.13? if so i have it

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 27th Jun 2007 08:12
ugh.. i give up..



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 28th Jun 2007 17:59
hmmm ok well i have animations done i think and i tried them in game but i get this problem with all my animations evertime i move and the animation plays i like lift off the ground and the animation doesnt play

screen shot attached to this post

if any one knows what the problem is could you tell me plz

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 28th Jun 2007 23:21
that can be because you exported your character higher than it should be or you positioned it some way wrong in darkbasic



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 28th Jun 2007 23:38
but it doesnt even play the animation it just lifts up into the air and sits there

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 29th Jun 2007 00:08
you need to use the correct export settings so it works with dbc



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 02:04
.x file right?

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 29th Jun 2007 02:31
yes, but have correct export settings on the .x file .



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 02:36 Edited at: 29th Jun 2007 02:42
kk? can u give me a hint on what that is?
heres a pic of it in milkshape when i export

if somthing is set wrong on it plz tell me

Alienmaster
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 18:07
no one knows?

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 29th Jun 2007 18:42
why dont you try the "search" for once?



alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 18:50
I do i use it all the time but i just dont know what to search for

Alienmaster
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 19:05
ohhh i found it .....lucifer i love ya...(im not gay) but thank you so much i figured it out.....ill put u and lbfn in my crditz..kk....

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Jun 2007 19:16
@ alien master

I read your code and couldn't follow it, you seem to understand the logic of coding, but with the limited commands you have good knowledge of you wont be able to make a game like Zelda. Take these guy's advice and do lots of tutorials, you'll soon master loads of commands and be able to put them in your "Zelda" game, making your life much easier.
For now I would suggest putting this on hold and going back to the books (as I say). Try making something like Pong or Pac-Man, it sounds trivial but you learn a hell of a lot doing projects like that, and at the end of it you have a working game!
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 29th Jun 2007 20:02
?
@obese87

ok well my code what?

couldnt follow it?

i dont see that would be because my code works fine.....

i already have a database of login stuff like that and if i can however long it would take to turn this into an mmorpg/or morpg

i already have plans on how that would an wouldnt work...plz dont say its impossible because one of these days someone is gonna come up with a really good mmorpg/morpg and stump you....

yes mmorpgs/morpgs take lots of time lots of knowledge cash...etc

these are things i have

but

ive been thinking of how hard a project of this statute would be.....

so im starting it off nice and slow and after so long it will just keep piling and piling to the point where i could try and make it as such.

but right now im aiming for an rpg...

not that hard..ive been doing fine so far.....

and yes....

i didnt get darkbasic off the tgc site i got it from target

ok so what im basically saying is yes you have every right to say this would be impossible..or near impossible but that doesnt kill dreams....because sooner or later this might or might not turn out to be a pretty good game...

so whatever.

peace

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Jun 2007 23:24
@ Alien Master

Sorry if I offended you, you said pretty much what I meant by working on smaller projects and learning from them before you take on this one. I like your attitude, and as long as you keep that up I'm sure you'll be able to prove me wrong by finishing this game.
And as for my comment on your code I apologise (it's not actually that bad), there's so much BAD noob code out there that I took one look at your structure and judged you.
Your code is however a bit like an old car, you've thrown together bits and bobs and somehow you've managed to get it working.
If you structured your code better it would be a lot easier to read and to work with. I suggest you use gosubs, they turn your main program into a few lines making it really easy to read, and it makes your program easy to debug because you can simply "switch off" a gosub by putting "rem" in front. Here's an example of gosubs.



Another thing, I have to laugh at your "key loops" because they're exactly what I used to do.


One of the most difficult things to remember in programming is to think about what you're ACTUALLY doing. For example: here you've used a DO LOOP, which is fine (as you said, it works) but thats not the best "tool" for this job. Think about what you're doing: you are waiting for the user to press a button; you're waiting for something to happen, but a DO LOOP doesn't wait for something to happen: it just goes round and round. (Can you guess what I'm gonna say next?). WHILE and REPEAT UNTIL loops do wait for something to happen.
Here is an example of your code in a REPEAT UNTIL loop.


I hope I have been more helpful and less damming lol. If you need any more help or explaining what I've said just post it.
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 01:10 Edited at: 30th Jun 2007 01:11
Ok i totally understand what your saying this isnt the best code...i knew what gosubs were i just never really understood their purpose

along with the repeat loop mix up thing....

and for the if escapekey()=1 etc.
i dont know but ok heres a question

is it possible to make a until command that is an actual point on the matrix like


this for example

play music 1 until x y z

and then that music would stop and another song would play

im not sure if you play world of warcraft but if you do that kind of switch like waling through a gate and then the song switches by the position on the world you are

i dont know if its possible but if it is could you give me a clue.....

thx

Alienmaster
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Jun 2007 01:26
@ alien master

You could tell your program to check for or play music in defined areas of your matrix. You could simply look at the camera's x,y and z positions to see if the player is within a certain zone. If that particular music isn't playing already, then stop the other music and begin to play the new one.

You would not use a repeat - until loop to do that. I would recommend using a gosub from your main do - loop to go to a subroutine to check to see if the camera coordinates call for it.

LB
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 01:34
ok thanks alot

Alienmaster
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jun 2007 01:37
Quote: "Ok i totally understand what your saying this isnt the best code...i knew what gosubs were i just never really understood their purpose"


That's the reason why tutorials exist - to explain really basic things like program layout and how Gosubs/functions work.

I understand how they work, and over 30 years of programming have given me an insight on the good and not so good ways to write programs.

I started in the days when Gosub and Functions didn't exist and Goto was the only real control we had over branching in our programs. These days there's no real use for Goto apart from by lazy coders who are not prepared to learn how to do it the 'proper' way.

This elementary stuff really must be learned before you start on the more advanced stuff or you will become unstuck very quickly.

The thing that bugs me is when newcomers to DB join here and ask a question to which the reply is given "check out the tutorials - the basics are covered there", yet the next post they make is asking questions which are covered in the tutorials they were supposed to have read.

I'm not saying that you are one of these people - it's just a general statement regarding many newcomers.

The biggest danger is that too many newcomers are copying and pasting code from others into their own programs, not knowing what it actually does, or how it does it.

I really do suggest that you read tutorials 1 to 4 here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

...as doing so previously would have prevented the need for nearly all of your questions so far.

The other 12 tutorials may also be of interest too in the future.

Just to finish, I should tell you that the first time I joined a DB forum, I spent the first month or so reading posts, tutorials and help files before I even started the first thread of my own - and that was to clear up an issue I didn't understand in a tutorial!

These days, some newcomers seem to think that reading posts, tutorials and using the search button is beneath them and they have the right to come onto these forums and just be given what they want on a plate.

And every time we supply them with what they ask for, we are doing them a dis-service...

TDK_Man

alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 01:58
Im glad someone thinks that too

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 30th Jun 2007 05:43
I think a good idea would be (if you haven't already) to sit down and work out what features the game is going to have, such as mini-games etc. Then start working on those smaller features of the game.
I would like to see an RPG where say if you had to collect wood, you would go up to a tree with your axe and you'd actually have to swing the axe to cut it down using the arrow keys, or something like that. That would involve the player more in the game than simply clicking on the tree.
I like the idea of having different music for different areas, to save memory you could use 1 music "slot" and when you cross over to another area, load the new music into that "slot". LBFN is right about gosubs for this, a REPEAT loop wouldn't work, the program would get stuck in it, or would drop out the end of it! lol
I'm probably being confusing now lol.

I make music and art. Here is a sample of my art: done in Paint! It's all I have
[HOW DO I GET AN IMAGE IN HERE?]
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 06:11
no i understand.

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 30th Jun 2007 13:40
@ alien master

I'm getting the feeling you have learnt in a very unorthodox way, you seem to be good at some advanced things, while have no clue of some of the basics. Brush up on the basics with TDK's tutorials, it should be easy for you to pick up especially as you are experienced enough to apply it to your own programming.
This is making me think maybe I should brush up on my basics, there's always something I've missed .

I make music and art. Here is a sample of my art: done in Paint! It's all I have
[HOW DO I GET AN IMAGE IN HERE?]
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 18:31
yea..i understand but i started programming along time ago and i pretty much knew all i could but then i just like stopped and i came back to try and make a game again...i couldnt remember the small things just the more complex code.

Alienmaster
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 19:53
ok heres a question is there such a thing as a

if playing command?

like for music it would be like this

load music "etc.mp3",1
play music 1
stop music 2 if playing

could i d something along the lines of that?

Alienmaster
Lucifer
20
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 30th Jun 2007 20:02 Edited at: 30th Jun 2007 20:23
EDIT: sorry, i misread what you wanted and wrote a wrong code

but i guess what you want to do wouldnt be so hard to do in fact, it's really easy... try figuring this one out for yourself, it's much more satisfying than getting so help with something that's so easy..



TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jun 2007 20:22
Alien master you really, really do need to locate the F1 key on your keyboard!

1. Press F1
2. Click on Commands Menu
3. Click on Item 10 - Music
4. Read what it says there

I suggest that you do a scan of all the commands and functions in the help files just so you are familiar with them. When you want to know if a command exists, check there first!

TDK_Man

alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 21:09 Edited at: 30th Jun 2007 21:12
ok
well i do the f1 text thing

it will search for that thing in the help files

most of the things i use though says error cant find that
edit
-----------
if music playing(1)=1

Alienmaster
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jun 2007 22:26
Quote: "most of the things i use though says error cant find that"


Yes - that's why you need to spend a while just reading the names of all the commands in the section you are interested in. You don't need to remember the descriptions for each command - just the name of the command.

That way, when you need a command you've not used before, you might not know how to use it, but you might remember the name of the command you need to look up.

For example, the last thing you mentioned was a command for "stop music 2 if playing". Had you read the list of commands, there's a good chance that you would have remembered 'Music Playing()' so you could look it up.

Quote: "edit
-----------
if music playing(1)=1"


Spot on!

You just answered your own question for the first time. Congratulations!

And that's the only reason for not coming straight out and telling you the name of the command in the first place - when you do the digging yourself you are far more likely to remember it.

TDK_Man

alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 30th Jun 2007 23:19

hooray

now im working on collision boxes....now from what ive (learned) collision boxes would be like this

ok lets say i had a building scaled at 2000 i would do this u can correct me if im wrong

Load object "etc.x",1 : scale object 1,2000,0,2000 : make object collision box 1,-1000,-500,-250,1000,500,250

now that might be wrong but i heard that you put half of the objects size than half of that and half of that..3 in negative and 3 in positive but i dont understand that process

tdk i read your tut on collision but that wont work for me...when i use the Get Object Collision X(Object Number)
it says
Quote: "get object collision expects no paremeters"


so i dont understand

peace

Alienmaster
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Jul 2007 02:58
Quote: "scale object 1,2000,0,2000 "


The values here are percentages - NOT absolute sizes. That's why I keep stressing that you should read the help files! It's all explained in there...

So, when all three parameters are 100 then the object's size is unchanged. And, 2000 means 20 times bigger - not a size of 2000.

When the values are less than 100 then it's scaling down. So, 10 is 10% of the original size.

As you imagine, using 0 is not such a good idea as your object will have zero height.

And following on from that, the collision box values in your above example are therefore based on a box which is a different size to what your box actually is.

So, don't use Scale Object - either alter the model size in a modelling program or reduce the scale of your world to make the model look the right size.

Quote: "tdk i read your tut on collision but that wont work for me...when i use the Get Object Collision X(Object Number)
it says
Quote: "get object collision expects no paremeters""


I'm sure I've answered this for you in another of your posts - in that one you didn't supply the object number.

It obviously depends on exactly what code you have used, but the examples in the tutorial do work. If you change them though, then there's every possibility that they will stop working - which is naturally beyond my control...

TDK_Man

alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 1st Jul 2007 03:11
so ok if i made an object like this it would be

make object collision box 1,-10,-10,-10,10,10,10,(another number here)

so if it was scaled 5 times bigger

make object collision box 1,-2.5,-2.5,-2.5,2.5,2.5,2.5

correct?

and thanx im starting to understand this more

Alienmaster
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Jul 2007 03:47
Quote: "So, don't use Scale Object - either alter the model size in a modelling program or reduce the scale of your world to make the model look the right size."


The alternative is to use:

OBJECT SIZE X(Object Number)
OBJECT SIZE Y(Object Number)
OBJECT SIZE Z(Object Number)


...to get the object size after scaling. But I didn't think it was very accurate when I tried it.

The first option is probably the best as there has always been a problem with DBC's collision after scaling objects.

TDK_Man

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 1st Jul 2007 14:16
I've written a very "Zelda-ish" bit of music if you want it for your game? I wont be offended if you don't use it, I could make a better version of it if your interested (with more instruments).

@ All
is MP3 an ok format to be exporting in?

I make music and art. Here is a sample of my art: done in Paint! It's all I have
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 1st Jul 2007 20:32
Wow obese that is really great..it brings a tear to my eye...lol
but really that was awesome what did you use to make that ?

Alienmaster
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 2nd Jul 2007 03:45
HOORAYY we just got our windows xp today....HOORRAAAYYYY

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Jul 2007 11:50
@ Alien Master

I have an MP3 player that can record off a keyboard. (My dad's keyboard is awesome!)
Thanks I'm glad you like it.
I need to get an audio package to trim it down so it loops better. Does anyone know a good one?

I make music and art. Here is a sample of my art: done in Paint! It's all I have
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Jul 2007 16:34
Quote: "Does anyone know a good one?"


If you have a Sound Blaster sound card, you probably have one already called Creative WaveStudio but is hidden away and you'll have to go and find it.

TDK_Man

alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 2nd Jul 2007 20:54 Edited at: 2nd Jul 2007 20:56
hmmm ok im installing world of warcraft....right now im on the ME we have 2 seperate computers now...i can experiment with multiplayer options on darkbasic now!

@Obese

I have a keyboard to... its a smaller one but im saving up for a bigger one right now i have 300 dollars going for a 500 should have that by end of month...I know like 70 songs by ear..ive never had lessons and i cant read sheet music

isnt that weird?

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 3rd Jul 2007 02:50
@ Alien Master

Nope I can't read music either (well unless you call working out what each note is and "programming" it into my brain reading) 70 songs woah you have a good memory! you should learn the main chord variations but the rest you don't really need to know (i havent needed to anyway). I wonder if that actually helps your brain?
I'd like to be able to write down music that i write though.
Anyway... back to DBC lol

I make music and art. Here is a sample of my art: done in Paint! It's all I have
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 4th Jul 2007 00:23
lol

this is my shortest post ever

Alienmaster
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 4th Jul 2007 06:21
Ok thank you for that tip tdk it works good now got fully working collision boxes....

ok

I just noticed this i was walking through an alley in walmart and i found a brand of cdr disks called TDK for computer writers now im just guezssing is that where you got your name from?

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Jul 2007 15:39
@ Alien Master
No they named the company after him

@ TDK
Why are you called TDK? I know they're not your initials cos someone wrote your real name!
I bet it is a long story lol

I make music and art. Here is a sample of my art: done in Paint! It's all I have

Login to post a reply

Server time is: 2026-07-06 16:34:35
Your offset time is: 2026-07-06 16:34:35