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 / capabilities of dbp and help with movement

Author
Message
darshan
15
Years of Service
User Offline
Joined: 9th Feb 2009
Location:
Posted: 13th Jun 2009 12:29
can dbp support a game like cod 4?
i need help with movement so when i push the w key it move in the direction of the mouse.like u are spectating the game with no gravity.
how do i put textures on an objesct
thank you
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 13th Jun 2009 14:32
for the texture you use the texture object command, as for the movments u use this code in the main loop


hope it helps
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 13th Jun 2009 15:20
Actually:

should read:

so that you are forcing the input into lower case and comparing to an already lower case character.

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 13th Jun 2009 16:49
this method is fine, but when you press multiple keys, only one is recorded. so i suggest you use this:



the keystate command returns the state of the key (0 = not pressed, 1 = pressed) given. if you press ctrl+k in the default IDE you get a screen that returns the number of the keys pressed so you don't have to search for it. but for now the inkey method is fine.

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 13th Jun 2009 18:50
Quote: "if you press ctrl+k in the default IDE you get a screen that returns the number of the keys pressed so you don't have to search for it."


I just use my keystate map.



darshan
15
Years of Service
User Offline
Joined: 9th Feb 2009
Location:
Posted: 14th Jun 2009 02:16
thank you for all ur input

what i need to know now is how to move the camera to look around with the mouse and to move the camera around with the w keys
and is this the uk version of keystate map

this is the code for the loading objects and texture
but the texture is not loading
thank u very much
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 14th Jun 2009 10:44
if you wanna load an image, you use the command Load Image
the load bitmap command is for something else. about the camera movement, you can use this code for maving with the w and s keys:



this code moves the camera 5 points forward or backward. if the w key is pressed but the s key isn't, it does 1-0*5 and that's 5, so it moves 5 points forward. if the s key is pressed and the w key isn't, it does 0-1*5, which is -5, so it moves 5 points backward. and for the mouse rotation:



you can play a little bit with the values, and maybe use curvevalue. what it does, it rotates the camera on its x an y axis. on its x axis, it rotates the camera it original angle + the distance the mouse moved on the y axis divided by 2. it does the same for the x axis, but then with the distance the mouse moved on its x axis.

darshan
15
Years of Service
User Offline
Joined: 9th Feb 2009
Location:
Posted: 16th Jun 2009 18:31
thank you
but now im wondering how to move left and right
i found out how to load the image inside it
i am just wondering if i can make a really high compact game
like cod 4 or battlefeild
is it possibel to make an os with it because ive been reading about making os and they you can make an os in basic
i am aware thats it better to make os with c++ or c but was just wondering
thank you
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Jun 2009 20:19
In theory you could make a game like CoD but it'd take you and 50 of your buddies a good few years to do.

As for the OS, I'm afraid not. DBP requires you to be running DirectX 9.0c, and DirectX needs Windows.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
darshan
15
Years of Service
User Offline
Joined: 9th Feb 2009
Location:
Posted: 17th Jun 2009 19:07
so how do you move left and right ?..
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 17th Jun 2009 19:46
move camera left & move camera right OR move object left & move obejct right :p

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Jun 2009 03:41 Edited at: 18th Jun 2009 03:41
Keep in mind that Move Camera Left/Right are commands from IanM's Matrix1 Utilities plugin, which can be found in DLL Talk by searching Matrix1 on these forums...

Link: http://forum.thegamecreators.com/?m=forum_view&t=85209&b=18

<-- Spell based team dueling game!
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 18th Jun 2009 08:35
your right! damn, i never knew that!

MrBill
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location:
Posted: 18th Jun 2009 20:48
hey Grog Grueslayer

How can I get one of those keystate maps.

MrBill
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 18th Jun 2009 21:40 Edited at: 18th Jun 2009 21:40
Ya, IanM's plugin commands are so essential that I often forget that they're from a plugin rather than part of the command set.

i like orange
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Jun 2009 22:29
@MrBill: Right click that one he posted and click "Save Picture As"

<-- Spell based team dueling game!
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 19th Jun 2009 00:54
@darshan

You should read some tutorials before you start trying to make anything, especially something like CoD. Just taking bits and pieces of code we post isn't going to get you there. Check out the Tutorials Thread at the top of this board.



Diggsey: I have a spine and memory, but one memorable guy says he hates me. What am I?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Jun 2009 02:59
Quote: "How can I get one of those keystate maps."


Send 5 bucks to... na... do what Sixty Squares said. I made it free for everybody.

MrBill
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location:
Posted: 19th Jun 2009 22:31
Thanks for the template Grog Grueslayer. I was just having trouble with that yesterday. That template will come in real handy.

MrBill

P.S. thanks Sixty Squares for the advice

Login to post a reply

Server time is: 2024-09-28 08:25:08
Your offset time is: 2024-09-28 08:25:08