Comments

Log in with itch.io to leave a comment.

(1 edit)

Hello Robo. My name is Niven. I've been watching lots of your tutorials previously and I am a huge follower of your work, you do an excellent job with the Copper Cube 6 engine and I just really wanted to underline this statement as you motivate many developers using Copper Cube 6. 

Well, what I am humbly asking is that if you can showcase the most simplistic stamina behavior, which can be used in game. Now, I know you would directly say the "Hadooken Health Bar" and pin-point me into that direction, but because I know your work, I am really asking if you can provide me with a generous sample of that or maybe if you can make a tutorial for it. It has been a while since I've been working on it and just can't figure out the right way to create that type of behavior. 

I purchased this behavior and it is very useful, the reason why I am asking you specifically to make the "stamina" thing work. Thanks in advance. Cheers! 

Edit: FYI, I don't want to sound weird, but just in case if you don't believe me about being a fan and a follower (which would be odd, because we have been chatting before) here is a screenshot of this specific behavior being purchased 20 days ago and me following you on this platform:

(+1)

Hey Niven.

Thanks for the feedback - and purchase.

The new terrain walking API is out and I just now uploaded it here to itchio under that same asset you bought so have a look. 

It comes with the ccb file and custom Behaviour all setup and working with terrain sounds....let me know if there are any problems.

(+1)

I will have a look at anything might help with a stamina bar also...

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!

Hi Robo...I purchased your product. It needs an upgrade. Bugs (a) When you add extra textures to the terrain, the system breaks... (b)When the grass is less than 20, the system breaks.  Looking forward to this bug fix...Prepared to donate 5 Dollars for this fix.

ok, thanks, will take a look at that and get back to you...

Hi Zoolean,

For (a), I just run the 'range' version with extra textures and it will stop playing a sound on new textures as you need to add 3x sound variations for each new texture...if you dont want to get that then just pick some existing ones already and copy and rename to match the last 4 letters of the new texture names as there is no ability I am aware of to check for missing sound files before playing a sound in CopperCube...

For (b), cant see any problems...did you add a different plant texture to the standard ones ? if so you need to add 3x sounds and place them inside the 'sounds' folder that comes with the files and must be in the same directory as the 'exe' also.

Let me know if this fixes your problems...

Hi Robo...my personal opinion is that you are trying to do too much. The ideal behavior would allow you to add a sound to a single texture by name. This function should be then reusable on both terrain and game objects that take individual textures. I believe Just_In_Case was working on something like this before his PC got attacked but I stand to be corrected. I suggest that you also provide a function that allows you to splash in water... As I said, I will pay again for a better product. But excellent start. I also purchased your other plugin. Doing a great job

Hey Zoolean, Thanks for your input - I might add water splash sounds in but what about swimming as well....all that may be too much for to put into one behavior but water walking through water should be ok....

Adding a sound to individual textures only then what about walking sounds on ones you havent setup ? You mean you want a default walking sound and then change only if certain textures are found ?

To reuse for other game objects doesnt make much sense to me as if your walking over something like 3d mesh terrain - not yet seen one with different textures for different surfaces...let me know if you find one as everyone just paints textures on a terrain in each game engine and thus this behavior also works that way. If you mean jumping up on objects like crates then thats a different thing....you could still paint a texture underneath it to change sounds using this behavior.

Why not paint the walking through water underneath the water surface and thus no need to adjust the Behaviour at all....?

Ah, so you do like my work....there is a limit on what can be added into any Behaviour/Action and there is already a Behaviour out there for free for walking through water.  If you add new textures you should also add new sounds for each one. Even if you have to use same name of the texture as existing one to keep same sound (if you don't want to add a new one).

Not sure why you would want to add sounds for some textures and not others....

It does work quite well, but nothing will cater for all individual requirements unfortunately. 

When the grass is less than 20 - what do you mean by that ?