TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Leveling System
Pages:
1
Leveling System
evangturner
Posts: 15
May 21, 2014, 10:08:52 pm
How to create a global leveling system. Where a win in each game rewards the player with xp to add to their global level.
sdieters
Posts: 2068
May 21, 2014, 10:50:30 pm
it can be as complicated as you want.
you can simply use a GAME attribute which stores your XP, and for every let's say 1000 XP you gain one level.
or you can create a list (by hand, or by code) which increases the amount of required XP to level up, for every level.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
twotimingpete
Posts: 1667
May 21, 2014, 10:58:59 pm
make attributes for XP, required XP, and level. when XP is granted, in that same event check to see if the XP is equal or greater to the required XP, at which point increase the level, subtract the needed XP from XP and set that to "leftover xp", then set XP to "leftover xp". In this same event you can also multiply the required XP by some factor so that it grows as you level up.
My Twitter
evangturner
Posts: 15
May 21, 2014, 11:22:06 pm
Appreciate it thank you.
Pages:
1