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 Professional Discussion / DBP models and other help

Author
Message
Bashram
12
Years of Service
User Offline
Joined: 26th Oct 2013
Location:
Posted: 26th Oct 2013 18:53
Hey, My name is josh and just like many others, I have a video game design class at school which requires me to make a game (the whole carbonade project). My story is a little off-topic of the whole, promoting healthy drinks, but it doesn't matter all that much for my class.

My very first question is about models, I know how to load up a model as a character, my problem is that I'm having trouble finding free models to download. Most preferably would be a model of a human or elf holding a bow. but any human-like model would be great, the only model my school provides is a completely black penguin.

Another struggle I've had was changing the movement of the player to WASD instead of the arrows keys, the code for the arrow keys looks like:

if upkey()= 1 then move object 1, +10

(I'm at home right now so that may not be exactly what it is, thats just what i remember)
I changed it to:

if inkey$() = w = 1 then move object 1, +10

This change allows me to use W instead of the UP ARROW to move forward, but I can no longer move forward, while turning, whereas while using the arrows, I can turn and make a circle, and now I can't. Can anyone fix this? I asked my teacher and he gave me the "I dont know what the problem is, it looks correct to me"

Currently, these are all the questions I have. Thank you
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Oct 2013 20:13
MULTIPOST!

Good free objects are hard to find. Google can help. As for yout inout issues, check out the scancode/Keystate commands...

SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 26th Oct 2013 20:23 Edited at: 26th Oct 2013 20:25
Hey,
Try checking out this thread for 3d model resources!
http://forum.thegamecreators.com/?m=forum_view&t=154983&b=3
Turbosquid is probably my favorite site for getting models from. Do a search for whatever model you're looking for, and set the filter to only show up free objects.
As for the W A S D thing, try using keystate() and scancode() like mobiius said. The way scancode works is by returning a different code for every key you press. You can see it in action like this:


The keystate command checks if a key is being pressed by using it's scancode value, and returns 1 if it is.
The scancode value for the letter A is 30 (I think), so you could check if A is being is being pressed by typing 'if keystate(30) = 1 then'
Hope this helps
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 27th Oct 2013 11:01
Quote: "the only model my school provides is a completely black penguin. "

That penguin may in fact be textured, just that DBP doesn't know how to load it's texture automatically. Look into the folder and see if there are any image files and try loading them manually and applying to the object.

Kind of off-topic if you don't want the player to be a penguin anyway, but still...


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-07 06:24:16
Your offset time is: 2026-07-07 06:24:16