I am a pretty bad coder, and I am starting simple.
I am looking for a way to mouse over a player, and it displays their name just below their character icon for a few seconds.
Preferably able to set it's color, and size ofcourse.
If you want an example of what I mean they have that feature in Naruto: Next Generation, I asked if they could tell me how to implement this myself, they told me it was a library made by Berlin.
I'd really appreciate some help.
I dont know how to post this but found this code, how would I implement this into my source?
Thanks so far, but that sounded so chinese to me :P mob |
Rickoshay, that still doesn't really make sense to me at all, I am very very very new to coding on byond :/
|
In response to Seijinz
|
|
Then you may be trying to start too big. Don't try to run before you can walk. Try and find resources tailored to learning the basics, rather than things done with the basics.
|
Hi Reformist, I agree, but it's quite hard to start coding at all :)
I dont know where to start :/ I have the NNG 1.91 source, but it's quite messy in my opinion. |
99% of all sources that I am aware of, which people have access to, are pretty poorly put together libraries of questionable quality/implementation.
You can always read through the DM Guide, some of the tutorials out there, ect. You could alway codecademy it up and start learning with a different language first. Most languages that're on there draw similarities to BYOND. It takes a lot of time and effort to even learn the most basic of languages. Much more so to become proficient. |
The nametag itself needs to be an /image object (made with the image() proc) with a location set to a player. Each player can have its own nametag image. Then, when the nametag should be shown to an observer, you can simply use observer << nametag. When you hide the nametag, you'll have to use observer.client.images -= nametag (assuming observer is a mob with a client).
To give text to the nametag, you'll set its maptext variables: the maptext, maptext_width, and maptext_height of the nametag (/image) object. HTML in the maptext allows you to set its color and size (and text alignment), of course.