ID:173969
![]() Oct 19 2003, 9:35 am
|
|
how do i make the overlay of an HP Meter update?
|
That will clear all the overlays that belong to the atom then only add the meter back.
I posted how you can do one in a post a couple days ago: http://developer.byond.com/forum/ index.cgi?action=message_read&id=218403&forum=8&view=0#21839 2 |
If people would just search for recent posts in which similar problems were discussed, they would have all the info they need. Within the past few weeks I must have discussed how to create a meter overlay, how to update it without losing all the other overlays you have, and just about anything else you would want to know about them.
The forum search isn't there as decoration, it's actually a useful tool. Since most people choose to create a new thread about their questions and take our time instead of theirs, I think I may start replying to things with one line: "This was answered in a topic earlier this week. Look it up with the handy forum searcher." that would save our time and give the person needing help the wonderful habit of searching for things from the recent past that may answer their question before asking. I think it's a good idea, what about you? I think that would make for a good tip of the day... Tip of the day: Search for recent topics that answer your question before posting about it. Not only will you save the time of all those who would otherwise read your post, but it will also make you seem smarter since you don't have to ask the question yourself! |
I though that that was apart of the rules. I must have been mistaken, because i know that i use the forum search.
|
A short paragraph summarising that at the top of the Newbie Central thread listing would be great. Something like:
Welcome to Newbie Central! Please read this before you post. Most of the questions people ask here can be resolved by using the forum search feature. If that fails, try looking through the Tutorials, Demos, and Libraries sections. Doing this before posting your problem will help you and other people get answers more quickly! The bold bit should be in bright red and a large font-size, and it should flash. =P |
Because we still need to suggest it in the forum for byond suggestions. All the bright red and flashing though... I don't know about that. For those of us that don't need it, it would be a bit annoying to have that flashing in our face all the time. I suggest a slowly blinking purple link that attracts the attention of the newbies and gets them to click on it. It could be worded in a way that makes them want to read what it says, such as "Power coding! Feel smarter, get answers faster: click here for newbie help!"
|
Now, on to the help...
I will go right back to the roots in case anyone else sees this that it might help. To create a hp-meter overlay for your character, all you need to do is have an icon-state for each increment of the meter and add the appropriate icon/icon-state to the mob's overlays. Example:
Now, as for your question: all you have to do for that is to continually empty the overlays and readd them.