Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Experience Gauge
« previous
next »
Print
Pages: [
1
]
Author
Topic: Experience Gauge (Read 2823 times)
Muraiko
Cuddly Wuddly Snuggly
Zealot
Posts: 606
I'm really 4 years old... born on leap year...
Experience Gauge
«
on:
September 05, 2009, 08:36:58 PM »
I'm trying to make an Experience gauge, but am having trouble with it... here's what I plan for it to do so far:
It's a yellow bar on-screen, and as you gain experience points it'll fill up. Once it's maxed out, you level up, and the bar resets back down to being empty.
Though I found a problem. Since in RPGmaker, after you level up, you still keep the experience you have, the bar often doesn' reset back down to zero, but stays in the middle (For example, you need 600 experience to get to level two. AFter you level up, you need 1200 experience to get to level three. Since you still have 600 experience, the game thinks you're already half way done, and doesn't reset to zero, but to the middle of the bar.)
I've been trying to think of how to make the bar be based on the difference of your previous level, and your next one, but am having major problems with it. Right now, I have two variables to work with.
1.) One variable is the character's current experience points.
2.) The other variable is how much experience the character needs to have in order get to the next level
Is there anyway I can make this gauge work, using the two variables said above?
Logged
http://www.charas-project.net/forum/index.php?topic=23774.0
Muraiko
Cuddly Wuddly Snuggly
Zealot
Posts: 606
I'm really 4 years old... born on leap year...
Re: Experience Gauge
«
Reply #1 on:
September 05, 2009, 09:20:03 PM »
I guess that'll be alot more easier, or at least simpler, but I don't like the idea of using a varaible for the experience. Besides, shouldn't it make sense if the amount of experience you need "increases" as you level up, making it harder to reach higher levels?
I've been thinking about subracting the exp needed by the curent exp to get the difference, but that could change alot, since you could get "more" experience than what you need to level up, messing up the rest of the levels up to 99.
btw, I'm using the actual character's exp, so it goes anywhere from 0 to 9999999, if that helps.
Logged
http://www.charas-project.net/forum/index.php?topic=23774.0
Muraiko
Cuddly Wuddly Snuggly
Zealot
Posts: 606
I'm really 4 years old... born on leap year...
Re: Experience Gauge
«
Reply #2 on:
September 06, 2009, 02:19:29 AM »
Thanks for the help, but I actually managed to finish it myself (With major headaches might I add
)
If anyone's wondering, I actually had to create four different common events for this, and refer to each one. I had to make conditionals for every single level up to 99.
I made the number of experience needed to reach the next level be the max of the Experience Gauge. I then had to subtract the character's current experience by the amount of experience in his/her last level, which would be in a range between zero and the max of the eperience gauge. (But the hardest part was making for all nine characters...
)
So yeah, thanks anyway again.
Logged
http://www.charas-project.net/forum/index.php?topic=23774.0
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Experience Gauge