I need help with HUDS i just started programming after playing DU for a while and i thought to myself this game is getting old we need to make a new one so i'm going to start making a game that plays like DU without the dragon ball Z crap and game not really based on SAO but inspired by SAO(My favorite anime). I also want to know how to add a letters to code letters to a hud.
ID:1436767
Dec 3 2013, 4:10 pm (Edited on Dec 3 2013, 4:18 pm)
(See the best response by Flame Sage.)
|
|
I wanna do something like this can you see where it says Crow i seem to understand huds better thanks to you.
http://www.byond.com/forum/?post=1104257 But i'm still not understanding the maptext. |
That screenshot, at it's core, is basically a bunch of obj's with fancy icon's.
What you do is attach an obj to the client's screen, then set that object's maptext var to something like the player's name. Setting the maptext variable, along with maptext_width automatically displays text on that object as an overlay. |
Here's a good demo.
http://www.byond.com/developer/Albro1/MaptextLibrary Instead of attaching maptext as an overlay, just attach it to the client's screen as well as using screen_loc variable. |
One more thing how do i send things to a window to update like for example i have a stat window it says i'm level 1 i level up and it then says i'm level 2 how do i make a window do that?
|
You should really read the DM Guide and possibly look up references as Flame Sage suggested. All of your how-to questions are extremely basic.
|
In response to CyberGhost
|
|
CyberGhost wrote:
One more thing how do i send things to a window to update like for example i have a stat window it says i'm level 1 i level up and it then says i'm level 2 how do i make a window do that? 1. Open dream maker. Open up any code file. 2. Type "stat" 3. Press F1 |
Then look at the documentation for map text, and how to use it with client.screen, screen_loc, pixel_x and pixel_y offsets, and overlays.
Here's the reference: http://www.byond.com/docs/ref/index.html