HAVING ISSUES WITH GUI
Posts
Pages:
1
Hey RMN, its been a while. I haven't worked for a long time, and I'm afraid I've forgot quite a bit about moving around the program (plus, I upgraded to VXA so its like witchcraft to me) - and anyway, I've had issues with making my HUD work.
Just for the sake of testing if it all fits, I used the Health/Magic bars to represent Hunger and Thirst in its stead (also because I found a tutorial on the net for that)
For a change, I've evented my way around using the HUD, but I tend to make awful clipping errors. I made this in Photoshop...
However, when I use the old Move Picture action, it just moves the bars to the left, like this:

(which it is supposed to do, right?)
Now, my question is if there is a way to do this, perhaps by forcing the picture to disappear after a given coordinate (the left corner).
Also, just for the sake of it, I'll also upload what I did while eventing, perhaps I made a mistake there.
Screen #1:

Screen #2:

Thanks for reading this, and I hope someone will know how to deal with this dilemma. Still, you're the best guys! (and gals!)
Thanks in advance!
PS. Plus, I wanted to say "HUD" in the title, but I'm just too tired today...
Just for the sake of testing if it all fits, I used the Health/Magic bars to represent Hunger and Thirst in its stead (also because I found a tutorial on the net for that)
For a change, I've evented my way around using the HUD, but I tend to make awful clipping errors. I made this in Photoshop...

However, when I use the old Move Picture action, it just moves the bars to the left, like this:

(which it is supposed to do, right?)
Now, my question is if there is a way to do this, perhaps by forcing the picture to disappear after a given coordinate (the left corner).
Also, just for the sake of it, I'll also upload what I did while eventing, perhaps I made a mistake there.
Screen #1:

Screen #2:

Thanks for reading this, and I hope someone will know how to deal with this dilemma. Still, you're the best guys! (and gals!)
Thanks in advance!
PS. Plus, I wanted to say "HUD" in the title, but I'm just too tired today...
Hmm.. maybe I'm just ignorant, but I can't see how it would work that way. The only way that method would work is if you:
A: Use a different picture for each "percent" change.
B: Have a non-transparent top layer for the HUD that will cover the bars as they move underneath.
Of course, optionally you could just use a script-- since there are a few that I've seen which can use variables for HUD elements.
A: Use a different picture for each "percent" change.
B: Have a non-transparent top layer for the HUD that will cover the bars as they move underneath.
Of course, optionally you could just use a script-- since there are a few that I've seen which can use variables for HUD elements.
Thanks for answering, MakoInfused. Yeah, I thought I could chop the bar into fragments, but this image is of... sentimental value to me. I thought of putting a face through the loop, so I guess I can't simply move the image left to oblivion. I guess I'll seek out those HUD variable scripts.
Thanks once again! :D
Thanks once again! :D
Hey, no problem!
I didn't know that image was significant, hopefully you'll be able to find a script which allows the use of a variable for the values AND uses images. I don't remember seeing one like that, but it sounds like an obvious feature to have, right? If you have trouble lemme know.
I didn't know that image was significant, hopefully you'll be able to find a script which allows the use of a variable for the values AND uses images. I don't remember seeing one like that, but it sounds like an obvious feature to have, right? If you have trouble lemme know.
Heh, I guess you close one door, another opens. Now I'm having issues making the damn thing go down with the player's health...
Are you using a script, if so which one? If not, then post an example of your problem-- I might be able to help!
Thanks a lot for everything, MakoInfused. I'm not using a script, but I'm merely trying to synchronize the player's health (which can be almost any number) to the gauge. To have an even number, I've shortened the bar to 100 px (so each pixel can be 1% of the total health of the player, respectively) - however, I still can't make the bar move for every percent to the left. The only way I know - the longest - is to check for every single percent of the bar (place a conditional branch if the health is 99%, then 98% and so...) - I'm sure there's an easier way.
The way I handled calculations thus far was by multiplying the current health of the player by 100, then dividing it by the maximum health (CurHP * 100 / MaxHP). However, I have no idea how to make the Maker check for every variation and move the bar left appropriately (I've darkened the circle so the bars are invisible as they go left).
So for example:
CurHP = 500
MaxHP = 625
The calculation would be 500 * 100 / 625, the outcome would be 80, and the bar would decrease by a fifth and move to the left appropriately. However, I can't seem to pull this off, don't know why.
The way I handled calculations thus far was by multiplying the current health of the player by 100, then dividing it by the maximum health (CurHP * 100 / MaxHP). However, I have no idea how to make the Maker check for every variation and move the bar left appropriately (I've darkened the circle so the bars are invisible as they go left).
So for example:
CurHP = 500
MaxHP = 625
The calculation would be 500 * 100 / 625, the outcome would be 80, and the bar would decrease by a fifth and move to the left appropriately. However, I can't seem to pull this off, don't know why.
Well, I would approach it a little differently. There is no need to "check every percent" of the bar. If the bar is 100 pixels then you should be able to add a base value (the start point of the bar) to the percent number. Then you just need to set that to a variable of your choosing then go into the move picture command and "Display Position" from a "Variable". Does all of that make sense?
Optionally you can choose to compare previous/current stats through the use of storing it in a variable. Since the update procedure should only be done if there was a change in the HP/MP.
Also, your calculations are correct.
Let me know if you have any further questions, or if you need some visual examples.
Optionally you can choose to compare previous/current stats through the use of storing it in a variable. Since the update procedure should only be done if there was a change in the HP/MP.
Also, your calculations are correct.
Let me know if you have any further questions, or if you need some visual examples.
Hmm, I can't quite follow you. Could you perhaps explain a bit more widely? I like your idea but I'm not sure I can pull it off to the letter without some further questioning. Sorry :)
Can you please explain it in parts? I'm sure any designer here would appreciate the tutorial as well.
I'm just glad I didn't mess the calculations, I suck at math :D
Can you please explain it in parts? I'm sure any designer here would appreciate the tutorial as well.
I'm just glad I didn't mess the calculations, I suck at math :D
author=Milos
Hmm, I can't quite follow you. Could you perhaps explain a bit more widely? I like your idea but I'm not sure I can pull it off to the letter without some further questioning. Sorry :)
Widely, how? I gave a generic implementation, it doesn't get "wider" ;). Well feel free to try it out and then ask questions!
author=Milos
Can you please explain it in parts? I'm sure any designer here would appreciate the tutorial as well.
Why not just tell me what you don't understand? All you really have to do is just use a base amount (the point where the bar begins) and add it to the current percent.
Example: 100 pixels + (20% = 20 pixels) = 120 pixels. So you would draw the bar with a 120 x coordinate.
I'm sure they would appreciate a tutorial, but I don't have the time to create a proper one. Perhaps someone else can help you out with that.
Good luck!
I see, I see. I din't meant for a broad tutorial, more of a short series of parts - like you just did. I'll try it out and perhaps ask you if I manage to screw something up again. Thank you a thousand times, if you need anything, feel free to ask! You made my day, man! :D
Well, I managed to screw it up again. I must be missing something. Here are a few pics - I think I did what you said, but I might be wrong.
God, this is tiring. I'm just sorry I have to keep nagging you - but I'm hopeless!


God, this is tiring. I'm just sorry I have to keep nagging you - but I'm hopeless!
Yeah you did it correct (at least in terms of how I told you to it)! It seems to be working too. The only issue seems to be that the red bar is "starting" in the wrong place. That might be because the picture you're using has some empty space (transparent pixels in the front)? In any case, you can play with variable number 6 (in your example) and give it a negative number to move the start location of the bar. The alternative would be to crop the bar image to remove transparent pixels. Use which ever solution you think would be best.
Off topic, I would have to note that the bar looks like it's a bit too long for the "meter". Perhaps you can try using the "Snubbed" (lol, why snubbed?) bar instead, the blue one seems to fit.
Off topic, I would have to note that the bar looks like it's a bit too long for the "meter". Perhaps you can try using the "Snubbed" (lol, why snubbed?) bar instead, the blue one seems to fit.
Yeah, I managed to figure what was wrong. I did have to fix the offset to be -100, but yeah, it worked. I also misused the wrong bar graphic (the snubbed one) - hehe, had no better naming idea at the time :D
Thanks for everything, man. Once again, if you ever find yourself in need, ask me. :)
Thanks for everything, man. Once again, if you ever find yourself in need, ask me. :)
You figured it out on your own? Then that's even better!
You're most welcome, I didn't think you were nagging-- and you're certainly not hopeless. I'm just glad we got it working. I don't need anything, but I'll keep you in mind :).
You're most welcome, I didn't think you were nagging-- and you're certainly not hopeless. I'm just glad we got it working. I don't need anything, but I'll keep you in mind :).
Pages:
1














