ID:2356405
 
(See the best response by Marekssj3.)
How can I make it so that when a player talks to a NPC, its like this: http://img.gamefaqs.net/screens/6/5/8/gfs_52093_2_2.jpg

Where a message box appears on the screen (only the users screen, not other players,) and it outputs text into a message box, and you can press a button on the game controller to read the next message (or close the message if thats all the NPC had to say.)

How can I do that, without it being a standard alert pop-up window?
Hud objects
client.screen
image
maptext

Lol.
Best response
I mean like how can you make it so a message box slowly appears and expands open and the text outputs, like Mega Man X for SNES (actually I forget if it did that or not its been awhile) or like some other game where a message box slowly zoomes into the screen as a line, and then the line expands vertically and a huge huge animation plays of a message box opening up and then it shows a face that only the player sees and a message box shows up?

and how do you make something only appear on the players screen and not other players screen? I only know how to code from a DBZ Genesis rip I got in early year 2002 and thats how I know everything I know about making BYOND games but I think my knowledge is outdated now.
Keywords:
matrix
transform

http://www.byond.com/forum/?post=2240732


mob/verb/addMessageBox()
var/obj/o = new() //create new HUD object
//Extra tip
var/icon/I = new('Mob.dmi') //Create new icon to get icon Width and Height
o.icon=I
o.screen_loc="center:-[I.Width()/2],center:-[I.Height()/2]"
src.client.screen.Add(o) // Add HUD object to the screen
o.transform=matrix()*0.2 // Now I use transform and matrix proc to resize object icon. I'm resize it now to 0.2 orginal size.
animate(o,transform=null,time=2) // And now resize it back to oryginal size.


This isn't good practice to creating any HUD objects in your game, better practice is assign it to variable or list.