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 / Easy Questions. Alot of Questions.

Author
Message
SnowBoardin360
14
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 2nd Feb 2010 00:59 Edited at: 2nd Feb 2010 01:09
This is probally the easiest question you guys have ever been asked. well actually I have a couple of questions.

0) How would u make your actual game 2d instead of 3d

1) How would u make a 2d sprite (could paint be used)

2) How would u load it and position it correctly into dbpro

3) How would u make animations for your sprite (what program and it has to be free) and load them and get the to work when you press say spacekey (so something like if spacekey() = 1 play animation)

4) How would u load sound (for example a gun shooting)

5) How could i make a background for 2d from a picture and load it into dbpro

6) How would you load a picture (like a healthbar) into your game, position it, and then get it to go down when your hurt.

I think thats it... sorry for so many questions... I've searched youtube, tutorials, searchbar, nothing.

Could someone just tell me (or make a tutorial) on how to do this?

Extra Questions
these don't really need answering but they would help.

1) How can you make a sound that plays throughout your game, and then when you shoot it also plays the shoot sound with the main sound still playing

2) What code do you use to position something
(like
sprite:
position X: 200
position Y: 400)


PLEASE READ THIS
ok, I know how to load a sprite, sound, whatever into dbpro under the media thing on the bottom right but what code the I use to load THOSE into the game. (like: load sprite "armyguy", (size))

IM SO SORRY FOR ALL THESE QUESTIONS


You don't fight war for your contry, you don't fight war for your Queen, you fight war for the person beside you.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 2nd Feb 2010 02:33 Edited at: 2nd Feb 2010 02:54
have you even bothered to hit F1 in the editor?

and, please:
Quote: "
I've searched youtube, tutorials, searchbar, nothing.
"

is obviously just a little bit un-true? hmmm?

best of luck! you're gonna need it if you continue this way

add: sorry for the tone. i'm finding some of the silliness of the forums here very frustrating of late. too much "do this for me!" or "gimme the codez" kinda stuff. people taking the time to offer help seems to go un-appreciated way too often, lately. so, my apologies if my current attitude is unfounded... i think i need a break

Virtual Nomad @ California, USA
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Wreckka
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location: My grandmothers basement.
Posted: 2nd Feb 2010 05:21
Haha, Nomad, Take a break. Everyone feels the exact same way.

Quote: "0) How would u make your actual game 2d instead of 3d "

Forum search this. There is literally a whole part of the forum dedicated to 2d.

Quote: "1) How would u make a 2d sprite (could paint be used)"
Yes. Once again, forum search.

Quote: "2) How would u load it and position it correctly into dbpro"
Look through the 2d section of the code. You know what, I'm even gonna do it for you. It's not that hard. Help --> Command Help --> Commands --> Basic 2d commands. That would be a good start. From commands you should also look at Sound, music, sprites, and animation. Good luck.

Quote: "3) How would u make animations for your sprite (what program and it has to be free) and load them and get the to work when you press say spacekey (so something like if spacekey() = 1 play animation) "
I've never personally done 2d animations before. It might even be possible to do it in DB Pro. Once again, check out the animation commands.

Quote: "4) How would u load sound (for example a gun shooting)"
Check sound commands. Easy stuff.

Quote: "5) How could i make a background for 2d from a picture and load it into dbpro"
That's a question that depends on the scenario. I'd image it wouldn't be that simple once you start adding in sprites and such. Check the Image Commands. Or possibly Sprite Commands.

Quote: "6) How would you load a picture (like a healthbar) into your game, position it, and then get it to go down when your hurt."
You wouldn't load a picture. HUD's and healthbars usually are created within Dark Basic Pro. Once you have one made, you would make it go up and down using variables. If you don't know what a variable is, you are waaaaaay ahead of yourself. Best of luck with your coding.

x-X-x-WrecKKa-x-X-x

Making my way through life one line of code at a time...
SnowBoardin360
14
Years of Service
User Offline
Joined: 29th Nov 2009
Location:
Posted: 2nd Feb 2010 05:55
I know what a variable is, and im not lying at all Virtual Nomad. and I never knew about the F1 button, sorry, and thank you WrecKKa

You don't fight war for your contry, you don't fight war for your Queen, you fight war for the person beside you.
farmkid4
15
Years of Service
User Offline
Joined: 23rd Sep 2009
Location: on my pc :)
Posted: 6th Feb 2010 16:58
if you are still looking for this this is the way i would do it.
"how to play a sound though out your game"

load the file(load music)(load sound[for short like gun shot sounds])

and in your main loop put "play music music number"

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Feb 2010 17:33
Quote: "3) How would u make animations for your sprite (what program and it has to be free) and load them and get the to work when you press say spacekey (so something like if spacekey() = 1 play animation)"


Something like this?

http://forum.thegamecreators.com/?m=forum_view&t=164981&b=4

TDK

Login to post a reply

Server time is: 2024-11-16 11:19:42
Your offset time is: 2024-11-16 11:19:42