Giving each object a value?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all

    In my game I have 2 trees which are the same. They are both active. I want them to have health. In Aoe, RoN etc each tree has 50 health. when the health reaches 0 then the tree falls over.

    I've set up my man to move and keep hotspots in front of him. I've set up the trees to fall when the alterable value reaches 0.(Start of level it is 50). Every second while the guy is overlapping the tree it subtracts 1 from the tree's AV.

    This all works fine until I put another (identical) tree in the game. Then when the AV reaches 0, both trees fall down. I can make it so only the overlapping tree falls down but (as it gives the other tree the same AV) then when I overlap the second tree it falls down immediately.

    So is there any way of setting it up (without making each tree different) that each tree has it's own health? This way if I chop 50 off tree A then tree B still has 50 health?

    (Hope that makes sense)

    You should never say anything to a woman that even remotely suggests you think she's pregnant unless you can see an actual baby emerging from her at that moment.

  • yes it does.

    it sounds like you have done everything right, you must have made a 'silly' mistake.
    if you know how, upload the file and I'll fix it.

    if not tell me and I'll upload you one.

    God's in his Heaven -
    All's right with the world.

  • I've uploaded it into MMF2 file archive.

    Hope you can tell what i've done wrong.

    Thanks

    You should never say anything to a woman that even remotely suggests you think she's pregnant unless you can see an actual baby emerging from her at that moment.

  • All I was missing was a stupid overlapping condition during cutting the tree!

    Very silly mistake

    Thanks for the help.

    You should never say anything to a woman that even remotely suggests you think she's pregnant unless you can see an actual baby emerging from her at that moment.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!