Very interresting way to destroy object !

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 every one, I need some explanations ^^

    I create 1 object Active1
    I create 2 events:
    - "when Space bar is pushed", then, Active1 is destroyed.
    - "when Space bar is pushed", then, create one Active2 next to Active1

    So, I was thinking that when I push my Space bar, all Active1 are destroyed, so, any Active2 will be created as any Active1 exist !!
    But nope, the result is that Active2 is well created, and Active1 is destroyed......

    Here a very simple application showing that fact..
    Please login to see this attachment.

    If you can help me, I will be so happy ^^

    Edited once, last by Mystiik (August 27, 2016 at 9:37 AM).

  • Objects are not actually destroyed till the end of the event cycle.

    So you might need to do what you want differently if this isn't working for your project.
    Perhaps set a flag then test that flag the next event cycle for example.

    Please login to see this link.

  • Mmh I see, I will do it like that for now but it's not convenient..
    Because in fact, when I say "destroy", I want it to be destroyed right now ^^
    Like when I say "A takes the value A+1", I don't want A to take it's new value in the end of the cycle !
    Do you think you will patch that or you will keep it ? :)

Participate now!

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