How do I Recognise All Objects That Can "Catch Fire"

0 favourites
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • If your project is simple, feel free to drop me a link and I can take a look at it.

    If you can reproduce the issue in a fresh capx showing only the parts of the problem (like, if your project is HUGE or you don't want to risk leaking it) then that will also work.

    It sounds definitely like a picking problem... it sounds like perhaps the catching on fire part is working, but when you're changing states of the trees to "burnt" it's picking the wrong target ID, or something.

    ~Sol

  • I've managed to extract only the relevant part of my project to show you what I mean.

    I've tested it to see if it still happens in this project, and yes it does happen, but it may not happen all the time, so you may have to run it several times to see what I mean.

    Feel free to just reduce the Health on the FireCloak object in the debug inspector once you notice the flames on the FireCloak. You'll see what I mean.

    https://www.dropbox.com/pri/get/Testing ... u2X157e6nw

    I've left notes on the eventsheet, but please let me know if you need anything else. This problem has really lost me. <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

  • Your dropbox link appears to be private or something. Did you create a share link or a direct link? Dropbox has changed now, and it has confused a lot of people.

    ~Sol

  • Sorry about that. Here's the proper one:

    https://www.dropbox.com/s/kd4x0frtc6nzn ... .capx?dl=0

  • AARRGGHHHHH lol... it's in a newer version of C2. Must be time to update my software and pray nothing breaks in my project xD

    ~Sol

  • ERm, I think I fixed it? I sped everything up by a lot because it takes soooooooooo long to test so I don't know if that's affected anything at all but....

    Event 17 in your cut-down example, I changed "For each AppleTree" to "For each FireCloak" - since you are wanting to check each firecloak and find the corresponding TREE that goes with the cloak ID. The way you had it, you were basically telling it if the tree.ID is equal to itself, then do stuff. Now, by changing the loop object to the cloak, it's using that as the comparison.

    Hopefully that has actually done it. Go ahead and change event 17 loop object from tree to cloak and see if it works for you too

    ~Sol

  • Hey Sol,

    Thanks so much for spending the time you have to look into this for me! I have tested it twice and it's consistent. Thank you so much!

    Just one question though, does that mean I need the part where I check the AppleTree's Object_UID to see if it matchs the FireCloak's Object_UID or not? Because you said that was just picking itself, even though in the expression, it says "FireCloak.Object_UID"?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes you need the part where it checks the tree ID against the loop "for each cloak". It was comparing to itself before because (from memory) your loop was "for each tree" then you were comparing "tree.id=cloak.id".... but, which cloak ID? By changing the loop to "for each cloak" you're telling it which cloak to compare to. Before it was just comparing to *any* cloak, not a specific cloak.

    ~Sol

  • Oh I understand perfectly now.

    Thanks for your help! Very grateful!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)