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 / Largeing objects

Author
Message
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 15th Dec 2002 12:29
is there any way to enlarge loaded object because i've got
all my objects but they are all out of proportion is there any way in dark basic to change this or do i need another program
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 15th Dec 2002 12:45
i've now found the oblect size command in help but i can't get the syntax right

Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 15th Dec 2002 12:59
sorry bout this but another problem is that when my charactor is walking (its the samurai dark basic supplies) the arm comes off and goes where a tail should be is there a possible solutionto this problem

Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 15th Dec 2002 13:20
here a code snippet of the arm problem if you put it in to the samuria's folder it should load properly
Sync On
Sync Rate 30

Rem make matrix
Make matrix 1,750,750,20,20

Rem Make player pawn
LOAD OBJECT "idle.x",10 : APPEND OBJECT "walk.x",10,100
position object 10,100,0,100


rem Loop 3D object animation from 0 to 20 (idle)
LOOP OBJECT 10,0,20 : SET OBJECT SPEED 10,10

Rem Main loop
Do
REM restart
stage = 0

Rem Store Object angle
AngleY# = object angle Y(10)

Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,AngleY#,20)
ZTest# = Newzvalue(Z#,AngleY#,20)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
Move object 10,-10 : stage=1
Endif
Endif

If Leftkey()=1 then Yrotate object 10,Wrapvalue(AngleY#-5)
If Rightkey()=1 then Yrotate object 10,Wrapvalue(AngleY#+5)

X# = Object position x(10)
Z# = Object position z(10)
Y# = Get Ground Height(1,X#,Z#)

Position object 10,X#,Y#+12.5,Z#

CameraZ# = Newzvalue(Z#,AngleY#,100)
CameraX# = Newxvalue(X#,AngleY#,100)
CameraY# = Get Ground Height(1,CameraX#,CameraZ#)
Position camera CameraX#,CameraY#+100,CameraZ#

Point camera X#,Y#+65,Z#

rem ani change
IF stage<>oldstage
IF stage=0
SET OBJECT FRAME 10,0.0
LOOP OBJECT 10,0,20
SET OBJECT SPEED 10,50
ENDIF
IF stage=1
SET OBJECT FRAME 10,105
LOOP OBJECT 10,105,123
SET OBJECT SPEED 10,50
ENDIF
oldstage=stage
ENDIF

Rem Refresh Screen
Sync
Loop

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 15th Dec 2002 19:31
To make an object, Scale object #,x,y,z

Eg,

Scale Object 1,100,100,100 will keep the object the same size. Scale object 1,200,200,200 will make the object twice as big

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 15th Dec 2002 21:53
the samurai screwing up is a bug in the model animation, it happens to everyone
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 15th Dec 2002 22:57
Yep

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 18th Dec 2002 19:36
work so its a bug is there any way I can fix it or do you know a place where i can get a replacement that has all the right animations.

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 19th Dec 2002 03:51
Dark Matter

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com

Login to post a reply

Server time is: 2024-04-24 17:06:42
Your offset time is: 2024-04-24 17:06:42