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 Professional Discussion / Darkbasic FPS HELP

Author
Message
Darkbasic FPS help
15
Years of Service
User Offline
Joined: 29th Mar 2011
Location:
Posted: 30th Mar 2011 02:31
I would like help or a tutorial on using HUD.x weapon files for Darkbasic. I'm currently trying to use the m4 from a model pack and i honestly don't know how to get all the animation commands and such working. Example code will be very helpful.
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 30th Mar 2011 05:50
Don't know why they are set up so goofy but put this into your loop:

That's pretty much all the code you need for placement.

For animation, look in the folder that you got HUD.x from and there should be a file called "gunspec". Open that up in notepad and find where it tells you the animation frames. An example is where it says "Idle 4,9" This means that the Idle animation is run between frames 4 and 9.

I'm not going to teach you animation, go check out a tutorial on that. But be warned, NEVER use "play animation" functions, EVER. Always handle your own animation by "inc FRAME, AMOUNT". (Don't forget to have FRAME as a FLOAT as frames can equal between two integers (0.5, 22.8845, ect.)

Hope this helped

Ventures of the worlds around us are only limited by imagination.
Darkbasic FPS help
15
Years of Service
User Offline
Joined: 29th Mar 2011
Location:
Posted: 31st Mar 2011 02:35
where do i find the tutorials, i need to learn everything about these HUD.x files and how they work so i wont have future problems loading them into darkbasic.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 31st Mar 2011 03:17 Edited at: 31st Mar 2011 03:17
Try here:

(Click the light bulb)


My software never has bugs, it just develops random features.
C4: silly putty for men.
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 31st Mar 2011 03:24
..or just experiment with it until you get it the way you want.

Login to post a reply

Server time is: 2026-07-11 14:57:06
Your offset time is: 2026-07-11 14:57:06