codah's Forum Posts

  • 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

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • a tip for you codah is to have the iOS target to 5.1.1 or ells apple will reject it

    I still have no idea what I should do :/ I even created my own CSR on my mac and tried it on windows as I have all the files there but still nothing. why does apple have to be so complicated! On andorid it was so simple

    Edit: well the certificate problem is solved as I exported a p12 file

    now I just got to fix the image problems and see if the last error. be sure you are in the right tab as I accidentally added all images to android instead of iOS and now I have to recreate everything in those sizes lol

    yep already know about the 5.1.1 thing but I haven't reached that point yet..

    Yes the tab thing is a real trap.

  • I'm about to go out but if the problem is not resolved I'll post something later. Basically I deleted certificate and everything else and started over like you said you did.

  • > If you can replicate this in a sample capx it would be good. Not everyone has time to try and recreate the problem in a capx.

    >

    > edit: try this method. I've put in a button to toggle the 'in use' for each Customization. It retains the 'trigger once' and will work for any number of Customizations.

    > [attachment=1:32qj9jz6][/attachment:32qj9jz6]

    >

    > If you want a simple checkbox it can be as simple as this

    > [attachment=0:32qj9jz6][/attachment:32qj9jz6]

    >

    I was complaining about myself trying to solve the question.

    I'll look at it. Thanks!

    Yeah I know, mine was just a general comment. For example I did recreate the issue (I think) so it would've been even easier for you to just copy/paste some code out to another capx (maybe).