Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks you so much. You literally do the most work with this complex, helpful and very neccesary plugins. The footsteps one is just beyond great. I will be using it for my upcoming experimental project. 

As for the stamina, looking forward to your reply. Cheers!

For a simple stamina bar - create a 2d overlay based on percent is best. 

The code is pretty simple  -every 50ms or so:

var maxStamina = 4; // in this case 4% of screen width

var stamina = maxStamina;

if (playerStat == "run") {stamina -= 0.007;}

else if (playerStat == "walk") {stamina += 0.0024;}

else {stamina += 0.005;}

if (stamina > maxStamina) {stamina = maxStamina;}

if (stamina < 0) {stamina = 0;}

ccbSetSceneNodeProperty(stamN, "Width (percent)", stamina);

I hope this is enough as bit busy with other things atm. Any questions just ask.

If you needed a better Hadoken extension explanation feel free to ask him to do a video on it 

Thank you so much. I also redownloaded the CC upgrade for the terrain sounds. 

You know, the variables are not my strongest suit. I did understand part of it, but maybe making a tutorial or a sample file would help more. I understand you are very busy, so there is no rush mate, take your time. It's just that practically I've tried using this and could not make anything. Mostly my fault lol, but yeah. Cheers!