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 / help!?!?!?!?!?!?!?

Author
Message
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 31st May 2004 19:10
euhm im sorta new
and could anyone help with this i want object 2 to follow me and
does anyone know how to walk on matrix (not that you go through those lines)and srry for my english coz im dutch
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 31st May 2004 19:16
sync on : sync rate 100
hide mouse : backdrop on

make object sphere 1,2
color object 1,rgb(255,0,0)
make object sphere 2,2
make matrix 1,100,100,20,20
randomize matrix 1,5
update matrix 1


position object 1,0,0,pos1#
position object 2,3,0,pos2#

set text font "arial" : set text size 16
set text to bold :










do


if object position y(1)>=0 and spacekey()=0
move object down 1,0.5
endif


x1#=object position x(1)
y1#=object position y(1)
z1#=object position z(1)
ay1#=object angle y(1)

set camera to follow x1#,y1#,z1#,ay1#,15,10,1,1




if upkey()=1 then move object 1,0.5
if downkey()=1 then move object 1,-0.5
if leftkey()=1 then yrotate object 1,ay1#-2
if rightkey()=1 then yrotate object 1,ay1#+2
if spacekey()=1 then Move object up 1,.3

if shiftkey()=1 then make object cube 3,2
if shiftkey()=1 then position object 3,x1#,y1#,z1#
if shiftkey()=1 then move object 3,0.5




sync : loop
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 31st May 2004 22:24
Do you have dark basic classic or dark basic pro?

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 31st May 2004 23:01
That looks like classic.

Infra-Dark
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 31st May 2004 23:04
Not that it works in classic...

Infra-Dark
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 1st Jun 2004 19:25
nope its pro it works but i just want object 2 to follow me like euhm... a dog follows its boss and i need to know how to walk on matrix
thnx in advance
Scarlek
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 1st Jun 2004 19:31
*absolute guess work here*

Try using glue on objects 1 and 2.

(i.e. glue object to limb command.)

Hope it helps in someway...

- Creating Games even I would play -
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 2nd Jun 2004 18:25
i tried that but it doesnt really follow it,it just sticks on the object
could someone plzz tell me how to

~im not good at expressing things but who cares, im a god in my mind~
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th Jun 2004 17:41 Edited at: 4th Jun 2004 17:54
Due to a stupid mistake, Dont use this source, it wont work...
However, the one under this will.

Infra-Dark
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th Jun 2004 17:52 Edited at: 5th Jun 2004 22:43
Ignore that!!! left a texture command in...
here you go:


P.S. this is for Dark Basic Classic, but it might work in pro.

P.P.S. It does work in Pro ( yay ), I only have the trial version which will runout in two days( aww )...

Infra-Dark
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jun 2004 21:18
Looks like you already figured out how to walk on the matrix.
To have object 2 follow you, there's two methods: easy way, cooler mathmatical way.

method 1:


method 2:



You'll have to right the distance() function yourself.
The reason I check the distance with a random number, is to make object 2's movement less uniform. Somtimes the object will stay very close to object 1. Other times it may keep farther away.
I don't have anything here at school to run the code, but it should work. If atan2() returns the wrong angle, just switch the values around. (x#-object position x(2), z#-object position z(2))

"eureka" - Archimedes
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 5th Jun 2004 19:01
nice work everything but method 1 doesnt work
probally my fault but it says cant find variable "distance"

~im not good at expressing things but who cares, im a god in my mind~
Guyver Unit 1
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Guyver universe probably 3512 B.C.
Posted: 5th Jun 2004 19:13
could u plzz make an example like auras???

~im not good at expressing things but who cares, im a god in my mind~

Login to post a reply

Server time is: 2024-09-22 12:32:20
Your offset time is: 2024-09-22 12:32:20