codah's Recent Forum Activity

  • Did you deactivate your production apk's?

  • Click on the Condition (e.g. around the word 'System') and press B to get a (blank) subevent or S to add and then be prompted for the condition.

  • Hey that's pretty good I guess it would be more challenge against human players! You just need to expand on things like play area size, etc. maybe make a larger scrolling area. And just general stuff! Nice effort.

  • Sorry had to step out for a bit. See if this helps

    These are ordered on-the-fly with a "For each .. order by". If you need to store the order you might want to go back to an array.

    I made a Family for the Sprites and put the 'initiative' variable on that. In my opinion ALWAYS put instance variables on a Family, not an object, for non-trivial objects.

    Similarly I made a Family for the Text objects. I gave each Family an 'ID' variable so that I could associate Sprite object with Text object. Could use containers but then I'd need to do it for each Sprite object type.

    Click the button and the Sprites are given an initiative as per your code, and displayed in order from highest to lowest inititative.

  • Without a .capx we have to take some guesses. But assuming you have a 2D array where the scores in the array are at y=0, and names are at y=1, then the array should sort numerically by score, ascending. Otherwise please provide more information. Alternatively you could give each player an instance variables 'initiative' and then pick by highest value using the initiative variable.

  • I'm sure you've used Functіons in your code before? Anyway the repetitive checking of 'activeLayer' had me twitching, checking the same thing 4 times in a row, so here's a slight mod of blackhornet's mod. Also, why set the red/blue/green in events instead of in properties? I guess because it's just a sample capx, but anyway I changed that too. I'm not a fan of using UID directly like that.

    [attachment=0:3teoydhf][/attachment:3teoydhf]

  • How can you stop it? You'll see that question doesn't make sense once you read the manual. Click Manual above then Project Primitives -> Events -> How events work

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You must read about how events are processed in the event sheet. Basically they are continuously executed from top to bottom, yes like a loop. You just have to get used to it.. There are still traditional loop constructs like for, repeat and while. And forget about the debugger.. Use print statements/logging.

  • Use ajax to request the page, then you will have it in Ajax.LastData.

    Dang.. I've only used it to get project files. Thanks.

    edit: actually I don't seem to get anything in AJAX.LastData if I request a random web page. Does this work only if I target a specific file?

  • There already is a boolean (InUse), but the trigger once is still needed so that the condition is not continuously evaluated and executed. The main reason his original events were looping is because the trigger once was not in the right place (I didn't mention that above).

  • Hi all

    How would I go about downloading a web page's content for analysis/scraping/parsing, in a mobile context (Android/iOS).

    Thanks!

  • tictoctic you're back

    So you bought a licence, well done.

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