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 / W, A, S, and D keys Help!

Author
Message
DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 28th May 2009 00:22
so if you wanted to use w,s,a,d to move your charector around you would have to make your code look something like this?



#include "darkGDK.h"

dbSyncOn ( );
dbSyncRate ( 60 );

dbLoadObject ( "Mr.Smith.h", 1 );

dbScaleObject ( 1, 1, 2, 1 );

while ( LoopGDK ( ) )

if(dbKeyState(DIK_W)) { // W key pressed
}
dbMoveObject ( 1, 2.0f );

dbSync ( );
}

return;
}
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 28th May 2009 01:45
Read this post again carefully:
http://forum.thegamecreators.com/?m=forum_view&t=151391&b=22

And is this a typo?


I hope you know that .h files cannot be loaded as objects...

#ifdef _DEBUG
FixBugs(All);
#endif
Juggalo Memnoch
16
Years of Service
User Offline
Joined: 22nd Apr 2008
Location:
Posted: 28th May 2009 01:53 Edited at: 28th May 2009 01:54
This is what I would use
you need to use the scancodes with dbKeyState command





I'm not saying what you had was wrong I just find this easier
DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 28th May 2009 05:45
No that isn't my file i just put something there to make it look professional. Thanks for the dbKeyState script. That helps a Lot!!!!!!!!!!!!!!!!!!!
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th May 2009 14:48
Quote: "No that isn't my file i just put something there to make it look professional."


It doesn't look professional. There is no such as .h objects

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 28th May 2009 15:24
There is. I use them. What I do is take all my .x files and rename them to .h files. Its fun because explorer gets confused, but since the header is still there, directx can still load them...
or not

DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 28th May 2009 19:05
AlexI. You are commenting on all my posts like I don't know anything about that. I know that .h files generally aren't objects but i just put it there because i don't really have a
Quote: "dbLoadObject ( "Mr.Smith.h", 1 );
"


file. I just stuck it there to let people know the script.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th May 2009 22:09 Edited at: 28th May 2009 22:10
Quote: "You are commenting on all my posts like I don't know anything about that"


Its true, no one would make an example with a .h file, no one would say that looked professional. No one on these forums likes double posts, most people wouldn't complain when they are told not to.

DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 28th May 2009 22:41
I'm sorry if I insulted you. I was assuming people can handle that there are double posts. And just cause you think that no one would make an example with a .h file you were wrong. I've seen many people use them as examples and please stop commenting on my posts. You are starting to annoy me. If you continue to comment on my posts like that i will have to ask the moderators to stop you.
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 28th May 2009 23:12
Lets put it another way. Stop being such a smartass and maybe people will start to help.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th May 2009 23:46 Edited at: 28th May 2009 23:46
Quote: "i will have to ask the moderators to stop you."


That will probably back fire on you

DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 29th May 2009 01:37
Then let it backfire. Maybe they will delete the thread so we can stop argueing. And sorry that i argue. I just like a good one. I'm sorry if i was being a loser. And thanks for the help on another thread that someone posted. I read it and you gave and answer that helped me.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
DannyE
15
Years of Service
User Offline
Joined: 10th May 2009
Location:
Posted: 29th May 2009 03:19
Hey you mods? Could you delete this account? I Am going to make a new one!!
mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 29th May 2009 09:46
Quote: "
DIK_W
"

lol c++ dosn't need the ++ to fix this lol

www.madninjas.co.nr we are mad and we are ninjas

Login to post a reply

Server time is: 2024-11-05 23:17:52
Your offset time is: 2024-11-05 23:17:52