I'm making a game where players can level up.
I want to make it so that when the exp bar is on a certain costume # it changes the level variable by 1.
I'm not sure if this is possible o.o
Though if anyone knows how I would love to know! Thanks people
Offline
skykoi wrote:
I'm making a game where players can level up.
I want to make it so that when the exp bar is on a certain costume # it changes the level variable by 1.
I'm not sure if this is possible o.o
Though if anyone knows how I would love to know! Thanks people
i think this is what your looking for
When gf clicked forever if <costume number of (xp bar) = Whatever> change level by 1
Offline
ZombieHappines wrote:
skykoi wrote:
I'm making a game where players can level up.
I want to make it so that when the exp bar is on a certain costume # it changes the level variable by 1.
I'm not sure if this is possible o.o
Though if anyone knows how I would love to know! Thanks peoplei think this is what your looking for
When gf clicked forever if <([costume # v] of [xp bar v]) = (number)> change [level v] by (1)
fixed
Offline
zammer990 wrote:
ZombieHappines wrote:
skykoi wrote:
I'm making a game where players can level up.
I want to make it so that when the exp bar is on a certain costume # it changes the level variable by 1.
I'm not sure if this is possible o.o
Though if anyone knows how I would love to know! Thanks peoplei think this is what your looking for
When gf clicked forever if <([costume # v] of [xp bar v]) = (number)> change [level v] by (1)fixed
thanks i am not very good at scratchblocks
Last edited by ZombieHappines (2012-08-18 23:15:26)
Offline
zammer990 wrote:
Erm, i see a flaw with this script though, the exp bar would have to change costume immediately afterwards otherwise it'd always add levels on
Thus, add this script to the experience bar sprite.
when gf clicked switch to costume [FirstCostume v] forever switch to costume (Experience) if <(costume #) > (LastCostumeMinusOne)> change [Level v] by (1) set [Experience v] to (0) switch to costume [FirstCostume v] endJust replace "LastCostumeMinusOne" with the number of the last health bar costume, minus one. ( :P )
Offline