Sign in to follow this  
s0l1dsnak3123

How do you make a hud display for an online-RPG???

Recommended Posts

hello everybody, I'm new here and have just recently purchased DarkBASIC classic and am workning on an online RPG. I'm weondering how you could get a HUD display that knowone else can see (since it is an ONLINE game) P.S A link to a website with free custom composing would be good too!!! s0l1dsnak3123

Share this post


Link to post
Share on other sites
the hud needs to be stored locally... u shouldn't have it serverside.

make a basic GUI first, with buttons, labels etc, and things will naturally flow from there.. :)

peace.

Share this post


Link to post
Share on other sites
It is'nt on a server yet, and the Idea is that at a certain time of a day, everyone with this game goes to the server's IP address.
P.S I don't know what a gui is and I'm quite new with darkbasic, but thanx anyways,
s0l1dsnak3123 :)

Share this post


Link to post
Share on other sites
I've never actually made a HUD, like those in FPS games, but I would expect they're just a single/group of images with transparent areas so you can see the rest of the game, and you call them LAST when drawing your graphics.

I suggest you play with something a LOT simpler than something that involves a HUD.

Share this post


Link to post
Share on other sites
things like, "Hey, I need help,... ah, want to just do all this work for me" usually doesn't go over very well, I suggest you don't.

now, "Can someone help me and guide me in learning to program in (Insert programing language name)" that might work nicely, if you get lucky.

Share this post


Link to post
Share on other sites
Quote:
Original post by Talroth
things like, "Hey, I need help,... ah, want to just do all this work for me" usually doesn't go over very well, I suggest you don't.

now, "Can someone help me and guide me in learning to program in (Insert programing language name)" that might work nicely, if you get lucky.



Done. new thread put in.

Share this post


Link to post
Share on other sites
a mod has just closed my board. don't know why, maybe it's bcause i repeated my self, so I'll ask here. will someone PLZ help me in making a HUD, I'll put ur username in the 'special thanks' section in the end credits...

Share this post


Link to post
Share on other sites
Last time I used DarkBasic was centuries ago, but if your doing a 2D game obv, just draw a Sprite at whatever location you want, and you could make a function that takes an integer input say "health", and then stretches a bar and draws it. If your doing 3D the best option with dark basic is to use a texture mapped plane, you can just change the texture on the plane based on whatever (you could actually use a mix of both and have the 2d function that stretch render to a texture and then texture that). Off the top of my head I can't remeber the forumla you'd need to position the plane in the correct place, but it would have to move the plane to infront of the camera, and rotate it by the same angle.

Hope this helps,

I would really consider moving on from DarkBASIC its pretty crap, but if your new its prolly a good way to learn the basics of what it takes to create game logic. Also Lee Bamber (guy who made DarkBASIC) is a complete willy, met him a couple of times. lol

Share this post


Link to post
Share on other sites
Do you have some basic parts of your game already done? A HUD is something I would plan to add in fairly late in programming. I think you need to slow down. I don't know anything about Darkbasic, but you really need to slow down. Do you have a HUD designed? Do you know how you are going to do your other graphics?

You really should prototype your stuff, see if you can get SMALL parts working.

What style of game is this? RPG doesn't say much. Is this 2D, 3D? top down, side scroller, third person, something else?

These are questions you must answer before even worrying about a hud.

Also I suggest you use the Edit button, rather than posting right after yourself. Thats usually considered bad form on forums.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Really bad idea to make an online rpg if you dont know anything about programming or networking, or how to make a simple hud...

A hud is nothing more than text and buttons drawn on the screen.
The buttons is nothing more than images and/or/with text.
Every time the player clicks with the mouse, the game loop through all the buttons and checks if the mouse cursor is inside one of them. If it is, things get a bit more complex. Isn't there any code released for free for dark basic that creates a simple gui? I suggest you go and find out and then tries to understand what it does.

Share this post


Link to post
Share on other sites
I remeber a dude named IronHoof wrote some useful GUI stuff, and there is a library for Pro called Blue or something like I said earlier years and years since I used DarkBASIC its totally cack, lol

Share this post


Link to post
Share on other sites
I have the main part done (the internet bit done) the RPG is 3d, third person, set in a huge magical woodland called Futopia.. I have just to put the main character on the screen (right now it's just a camera on screen. (now that I think about it I need to change the speed of the camera as well)), I have to make a more complicated matrix (right now I have got a flat, everlasting patch of grass), put some trees and other objects on it, and finally add the evil collision (which I am dreading!!!) and yes darkBASIC does have a demo game with a gui, but it is actually very complicated (it has a two needles in it for a speedo and fuel. I tried to convert it but it did a lot of weird stuff (like saying that 'end loop' has a 'syntax error'... 'nuff said
{edit} what is so cack about DB??? {end edit}

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
C, C++, DarkBasic, That blitz thing. It doesn't matter.
Pick the one you like best. Starting out with a BASIC language like DarkBasic or Blitz can be a good thing. You get a lot for "free" and doesn't have to battle DirectX or OpenGL to show something on the screen.
You can always learn C++ or C# or something else later on, if you feel that the Basic languages doesn't give you enough power.

Really, these language flamewars are just stupid. :P

Share this post


Link to post
Share on other sites
Quote:
Original post by s0l1dsnak3123
Quote:
Original post by TheGibberingFool
Use a MAN's language ... use C++ :P

That's all well and good for a man, but I'm barely 12!

I took a college level programming class before age 12 and got a good grade.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Really, these language flamewars are just stupid. :P


Language wars are totally stupid. So are operating system wars. In all irony, I don't actually like C++ at all... It's a disgusting hacky language imho. I just use it because everyone else does...

I was going to put some insightful HUD help here, but I notice that he's been suspended. Isn't this board 13+ only?

Share this post


Link to post
Share on other sites
Quote:
Original post by s0l1dsnak3123
Quote:
Original post by TheGibberingFool
Use a MAN's language ... use C++ :P


That's all well and good for a man, but I'm barely 12!


I started learning C++ when I was 11, and I'd beem using BASIC for 2 years before that. Believe me, age has no effect on your learning ability (except for spoken languages).

Share this post


Link to post
Share on other sites
A HUD will work like this, draw the game, go in to orthgraphic mode, draw to the screen the hud and all other sprites such as names of players. Then do hit detection (numerous ways, i suggest avoiding the openGL hit functions).

A simplistic hit detection would record the mouse location on a clikc go through at hittable items test if the mouse point is within the bounds of the control, act accordingly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this