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 / Make crosshairs and a gun

Author
Message
OneMoreLevel
15
Years of Service
User Offline
Joined: 1st Sep 2009
Location:
Posted: 1st Sep 2009 22:16
Hi, Im new to Dark GDK, and I was wondering. How can I make crosshairs be your cursor, and make it stay centered in the screen.
Also, How do I get a gun to stay where it normally would in a first person game, and shoot when you click.
Does anyone have any tutorials for this? I already have the gun and hand skins.
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 2nd Sep 2009 00:53 Edited at: 2nd Sep 2009 00:54


You want to decide how your camera will move(mouse, keys etc)
Then you need to place the gun under your camera with same orientation every loop.

GDK comes with documentation, just look up the sprite, camera, input commands and use the search feature on this forum and you will figure it out, good luck.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 2nd Sep 2009 02:03
You can look at the Dark Dungeon sample that comes with Dark GDK. It's a FPS and is an extremely good place to start for this type of thing. For me it's located here:
Quote: "C:\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9\Dark Dungeon"


Games are like life, they should never stand still.

Login to post a reply

Server time is: 2024-11-20 15:32:35
Your offset time is: 2024-11-20 15:32:35