How do I manage Character's Stats and Level of Experience?

Get help using Construct 2

Post » Mon Mar 24, 2014 3:09 am

Hi everyone,
I'm looking for tips to implement an Experience System that will influence Stats.

I found this useful tutorial from Tobye
https://www.scirra.com/tutorials/720/st ... nce-system

but I was not able to link it with what I wanted to do.

I don't know if I have to use an Array or not. (Actually, I never used an array before)

I would like to create a Table that allows me to define for Each level, the new stats and the XP requested (non-linear) to level up.
When the player levels up, he gets his new stats updated (health, strength, mana... XP to Next Level)

Thanks
B
26
S
10
G
3
Posts: 72
Reputation: 4,008

Post » Mon Mar 24, 2014 12:39 pm

That will let you load it from an XML, so you can edit it and reimport it as needed. Let me know if you have any queries about it.

https://dl.dropboxusercontent.com/u/108 ... Array.capx
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701

Post » Mon Mar 24, 2014 12:57 pm

Thank you a lot Emoaeden.
It is exactly what I was looking for.

For XP and Level Up, should I use the same technique or should I use Tobye's Tutorial approach? Then each time the Player levels up, I link the global value "level" to the XML?
B
26
S
10
G
3
Posts: 72
Reputation: 4,008

Post » Tue Mar 25, 2014 4:08 am

Check the CAPX again, I've just updated it so it does what you need. Ideally I'd do it this way, as you can always edit the XML as opposed to writing copious amounts of code. And as you can see, this does it in 5 lines :D
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701

Post » Tue Mar 25, 2014 12:58 pm

woaouuu. Thanks again Emoaeden.
B
26
S
10
G
3
Posts: 72
Reputation: 4,008


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests