Thursday, April 12, 2012

Toggling between Leaderboards

[:1]While making a map, i was confused whether you could have two leaderboards and switch them back and forth, yet i couldnt really find any help on how to do it. Well i just figured it out, and i wanted to post it in case someone else had this problem.

My goal was to have a income leaderboard and a life leaderboard--(im making a td)

I used two triggers, one creating the life leaderboard, and other the income leaderboard.

To toggle between each other, i added 4 actions to the first trigger:

--Wait 4.00

--Leaderboard - Destroy (Last created leaderboard)

--Trigger - Turn off (this Trigger)

--Trigger - Turn on (second leaderboard)



at the second

--Wait 4.00

--Leaderboard - Destroy (Last created leaderboard)

--Trigger - Turn off (this Trigger)

--Trigger - Turn on (first leaderboard)

NOTE: Both these triggers began with: Time - Every 0.01 seconds of game time



For this i had to destroy each leaderboard then recreate it. im sure there is a more efficient way to do this, but i just need to get the end product before i start refining it.

For this, it changes leaderboards every four seconds, but you can change it to whatever.

Hope this helps

cheers,

zaqwsxcde|||just use multiboards with those leaderboar info.

multiboards have more features for your request than leaderboard.

No comments:

Post a Comment