codah's Forum Posts

  • Yeah breakpoints are not that useful... I live by logging. I'll try to have another look at this if I get time.

  • here's the capx I used.

    [attachment=0:2xcs4gk1][/attachment:2xcs4gk1]

  • It's rendered off screen?

  • blackhornet correct me if I'm wrong but I think it will work ok like that. It should access the index of the currently running loop.

  • He said he DOESNT want pixel art

  • It's OnChanged not OnChanging so I guess it works as designed. Might have to make your own if you want that behaviour.

  • I've never done a cannon but I thought I'd try. Hope the capx helps in some way. I'm sure it can be done in many other better ways!

    Edit: BTW welcome to the forum

    [attachment=0:dh2atw7f][/attachment:dh2atw7f]

  • Think of a Dictionary as an Array with 2 values per entry, that are associated with each other. That's why in programming terms it's called an 'associative array'. Each entry has a 'key' (text) and a 'value' (number).

    Anyway, I did some testing and created an Array of 33,000 words and found that a seach for even the last word is pretty much instantaneous using the "ContainsValue" condition of the Array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for sharing. Did you look at using a Dictionary instead of an Array?

  • I added a global variable so the load is only done once.

    [attachment=0:ljhsmx9x][/attachment:ljhsmx9x]

    Edit: sounds similar to the above suggestion.

  • Also look into using a Container, then both objects will automatically get created, and picked. And look at Pin behaviour. I have a similar scenario where I have an object (invisible) that is always attached to an enemy object, and it has Turret behaviour, etc. On creation of the main object, I Pin the other object to it.

  • As far as I know it only distinguishes object types. You might need an 'open door' object type that doesn't get added to Obstacles. If you had the paid version you might add 'obstacle' types to a family. Feel free to post a .capx or screenshot.

  • Add an event.

    Double click 'System'.

    Start typing 'f-o-r' to narrow the choices; you will see For loop is an option.

    Are you using Pick Random Instance?

  • Welcome to C2. I don't think you'll regret getting the licence. Looks like you've discovered 'emergent' AI Good effort posting a screenshot after just a few days.

  • Sorry I had to leave but it was late here 😀 I hope you got it sorted.