Penghaw's Forum Posts

  • 6 posts
  • In this case you don't want to use "Pick nth instance" because you don't know the index of the object you want to pick. Instead, you should use the object's "Pick top/bottom" condition. When multiple objects have been picked by an event, this allows you to pick only the top-most/bottom-most object. Here's an example:

    https://dl.dropbox.com/u/917406/zOrderPicking.capx

    Hope that helps.

    Wow... Never would expect it was that simple to do... Never realized there was a 'Pick top/bottom-most object' function.

    Now my issue is resolved, thanks!

  • Still unresolved, any expert can help me here?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the answer to your question lies in choosing the "Pick nth instance" condition.

    I don't get how to use that condition though, can perhaps give me an example?

  • Let's say that I am creating 2 different bullet objects, each with different random interval.

    I set the event:

    • On object left-btn click and left-btn is down = set Bullet Disabled
    • On left-btn released = set Bullet enabled

    Problem is, when those 2 objects overlap by coincidence, I can't just select the top object, it will always causes both objects to have their Bullet property disabled.

    Question is - how to select specific overlapping object?

  • I made a simple Jetpack Joyride clone once to test C2 in Kongregate and Facebook!

    I've uploaded the project on dropbox so you can check it out. It's not the latest version, but you can see the core mechanics there.

    I'll try to find the recent project and update it.

    Let me know if you don't understand it! It was a "one-night-project" so I wasn't trying to comment events or anything...

    EDIT:

    I hate when I forget to put the links...

    Was searching for a clue, and found this thread. Unfortunately the dropbox link was deleted. Can someone reupload? I'm kinda stuck on my project and need this clue. Would really appreciate.

  • <font face="Verdana, Arial, Helvetica, sans-serif">Hey all, I'm kinda new to Construct 2 here. Used to dream about creating games, but realized that its not that simple. Now that I've been introduced to Construct 2 by a friend, I hope its much easier for me who is very weak in coding.</font>

  • 6 posts