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 / Limb Problems...

Author
Message
Hardsoft Studio
16
Years of Service
User Offline
Joined: 4th Oct 2007
Location:
Posted: 4th Oct 2007 20:56
I'm having problems... I am making a shooter game with Dark BASIC Pro but I cannot make the limbs work properly... The file always closes right after it's opened. Please help! (Here's my code

Rem [NAME WITHELD] Game
Rem Created by [NAME WITHELD]
Rem * * * * * * * * * *
Rem Beginning Setup
Sync On
Autocam Off
Position Camera 0, 0, 0.005
Set Camera Range 0, 10000
Rem Handgun
Rem Barrel
Make Object Box 1, .05, .01, .008
Position Object 1, 0, 0, 0
Rem Handle
Make Object Box 2, .03, .01, .005
Position Object 2, -.02, -.013, 0
Rotate Object 2, 0, 0, -120
Rem Trigger
Make Object Sphere 3, 10
Rem Barrel/Handle Bind
Make Mesh From Object 1, 1
Add Limb 1, 1, 1
Rem Bind Objects
Glue Object To Limb 1, 2, 1
Rem Ending Setup
Rem Camera Control
Do
If upkey()=1 Then Move Camera .0005
If downkey()=1 Then Move Camera -.0005
If leftkey()=1 Then Turn Camera Left .1
If rightkey()=1 Then Turn Camera Right .1
Sync
Loop
Twu Kai
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 5th Oct 2007 17:15 Edited at: 6th Oct 2007 21:54
You need to change line 23: Glue Object To Limb 2, 1, 1 is the code you should be using. When gluing an object to a limb, write in the object to be glued first, then the object which has the limb, and then the limb. Hope you understand.

The no Shader effects thread: http://forum.thegamecreators.com/?m=forum_view&t=108152&b=1

Mad About Functions!
Hardsoft Studio
16
Years of Service
User Offline
Joined: 4th Oct 2007
Location:
Posted: 6th Oct 2007 15:48
Perfect! Thanks!
DB PROgrammer
17
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 7th Oct 2007 09:33


I keep runing nowhere fast!

Login to post a reply

Server time is: 2024-09-27 05:14:48
Your offset time is: 2024-09-27 05:14:48