codah's Recent Forum Activity

  • Glad to have helped Anyway I think it was the Y position of the objects, not 'Use collision cells'. If you raise them by a couple of pixels (i.e. the same height as the first) then they all work.

  • So to fix it delete all the chesnuts except the first one off your layout, then re-clone the first one to where you had the others.

  • Yes that's why I saw the above Anyway, only the first chesnut is getting line of sight AT ALL. So definitely only that one will trigger the event. I noticed that one has 'use collision cells' to No and the others are Yes. However changing that didn't fix it. Something to go on though.

  • I was going to upload a screenshot but the forum won't let me.

    In event 225 you have the conditions

    -------------------------------------------------------------

    Idle: pick nearest to (chesnut.x, chesnut.y)

    chesnut: Has LineOfSight to Idle

    -------------------------------------------------------------

    Surely the Idle and chesnut should be swapped in the first condition? There is only 1 Idle object so there's no point picking it.. I'll continue to look.

  • Pin behaviour will work if you're doing it right. A common mistake is to not first set the position, before pinning the objects together..

  • So without the full capx it's difficult to know what you mean by "ill destroy the first one" (like, which objects you're referring to). Sorry but like this it's a guessing game for me.

    If you're destroying the chesnut objects then if your event 25 is on every tick (i.e. not a subevent) then I would expect the nearest chesnut with LOS to Idle would be destroyed, then again on the next tick the nearest one with LOS is destroyed... etc. If this is not occurring, make sure there is actually an object with LOS (is the animation changing to attack?).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Picking order doesn't matter; you will still end up with the same objects. Each condition is like a filter that reduces the number of objects that are picked. The exception is Pick All, which resets the picking and so increases the number of objects picked. You might sometimes need this in sub-events. Definitely re-read the manual section on Events that describes this if you're unclear on picking.

    So event 25 is saying

    "Filter out all chesnut objects except the nearest one to an Idle object, but only if it has LOS to an Idle object; then, for each one that is picked (if any; in your case there should be 0 or 1) set its animation to 'chesnutAttack'"

    So when you say "the other ones... do not change animation", are they not following your logic (above)?

  • caplocks1111 hmm.. actually no... that doesn't help him at all.

    If you create a new project and choose the platformer example, you should get some ideas from that (like the way the background and floor are moved). I'm not able to do more at the moment but that should give you a start.

  • caplocks1111 One way to NOT do it is to spam useless answers to every post you find.

  • caplocks1111 How? That's really not helpful, at least take the time to elaborate your answer.

  • Is this any good? Looks like the technique that TELLES0808 described.

  • Edit: Yes I'm still "sticking around" Please get in touch with any/all interesting projects. Thanks!

    Go to last post for latest status. Thanks.

    ----------------------------------------------------------

    I'm an experienced Windows developer (C++/Java) getting into 2D games. Have looked at Unity, etc. but decided to focus on C2 as the best way to get some games under my belt.

    At the moment I can offer some free dev time for nothing more than a credit on your game if you get published. I'll give my honest opinion about any task offered and tell you if I don't think I can handle it. I.e. I won't waste your time. I just want to build up some real world reputation as well as skills and experience in C2. As such I'd prefer projects that are at least hoping to see the light of day i.e. no homework please!

    I'm a quick learner and you'll see that most of my forum posts are helping to answer questions rather than asking them

    Obviously I don't have a portfolio of games, just the one on the WIP forum (which is actually pretty complete).

    https://www.scirra.com/forum/berzerk_t109651 It's a 1:1 re-make but I think shows attention to detail and the fact that I can complete a project.

    I'm based in Melbourne, Australia. I only speak English I do have Skype but I think for small tasks, my preference would be email. I will usually be able to answer very quickly.

    Please drop me a PM if you're interested. Thanks.

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies