Lives object - best practice?

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.
  • I have a Lives object in my game and I can get it to subtract when a collision occurs. What I can't get to happen is to have an action actually work when "All Lives are Destroyed" condition is done. I want it to go back to the start screen. I have that jump set under the condition linked to the storyboard control but it doesn't work.

    Is there something fundamental I'm missing. I looked through the forum and the help file, so it seems like I must be since I didn't see the issue anywhere else.

    Any assistance is appreciated.

    Creating an XNA phone application if that matters.

  • The only event you need to add to the lives object to complete the line, is add in "All Lives are destroyed" + "run this event once". If you don't it will loop the first line over and over again and the event will never happen.

    [SIGPIC][/SIGPIC]Please login to see this link.
    Please login to see this link.

  • I think what you were doing wrong was testing for the actual lives object being destroyed and not its counter value. The lives object will contunue to exist even after the lives value is zero. Unless you actually set an "destroy" action for the lives object, the "All Lives are destroyed" condition will never occur.

    [SIGPIC][/SIGPIC]
    Music Education for the 21st Century
    La pédagogie musicale au 21e siècle

  • The only event you need to add to the lives object to complete the line, is add in "All Lives are destroyed" + "run this event once". If you don't it will loop the first line over and over again and the event will never happen.

    Doesn't that event actually need to loop until the condition is met? If it ran once and the lives weren't destroyed, would it ever come back to that event?

Participate now!

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