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.

Dark GDK / DarkGDK HELP!

Author
Message
programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 10th May 2010 12:39
Need help...
1)Dont know how to make an object bigger in size
2)Dont know how to put a gun infront of the screen and make it look like im holding it, and make it rotate with the camera when i move my mouse without looking wierd.
PLZ HELP!!!
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 10th May 2010 15:29
good name
good title
Cool thread

1- dbScaleObject()
2- position the object at camera position, and set it's rotation to the camera rotation, and then offset it to fir anywhere you like

programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 10th May 2010 16:36
Thanx! but when i do "dbScaleObject()" it makes the object smaller d o u know how to make it bigger?
The second answer worked Great!
haliop
User Banned
Posted: 11th May 2010 12:02
about the gun , i just did something like that recently
you must use dbLockObjectOn no? so it will always stay there.
programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 11th May 2010 12:34
thx ill give it a try
Serial Velocity
15
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 11th May 2010 17:11 Edited at: 11th May 2010 17:13
Make sure your thread title is appropriate, as people wont be able to find your thread using the search facility as that only looks in the subjects of each thread.

and dbScaleObject uses percentages, not units. To make an object twice as big, you would write: dbScaleObject( id, 200, 200, 200 );

GDKUtilities, a utility library for DarkGDK, avaliable here
programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 12th May 2010 14:34 Edited at: 13th May 2010 08:33
ok thnx
programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 20th May 2010 11:43
does any1 no how to make one of my objects(Person) to follow me when i move?
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 25th May 2010 18:25
define move. if it is the camera, just position the object behind you when you move. are you new to programming? the mark of a good programmer is figuring out how to do new things with what he/she already has. try looking in the "vectors" part of the help file (*where you installed it*\darkgdk\help\docs i think is where the file is). read through this to get a sense of what dgdk can do.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
http://www.lionsbloodstudios.justinman.net/index.htm
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 25th May 2010 18:43
you can use waypoints if you dont want him to look stupid and just run behind you passing line of sight and stuff, but if you want simple following, you can just point the follower to the thing that it follows ( dbPointObject () ) and dbMoveObject () to move it toward the object that it follows

programmingkid
14
Years of Service
User Offline
Joined: 10th May 2010
Location: Planet Earth
Posted: 27th May 2010 14:31
Thnx Guys, it worked.

Login to post a reply

Server time is: 2024-07-07 00:15:21
Your offset time is: 2024-07-07 00:15:21