oosyrag's Forum Posts

  • You can set default properties by having at least once instance of the sprite places in the layout editor, even if the layout is not used otherwise.

  • You can use the AJAX plugin to communicate (get/read post/write) directly with web APIs.

    You can use NW.js plugin to read and write from the local pc.

    For online file hosting, there are a plethora of options out there, each with their own advantages, disadvantages, limitations and costs. Many of the paid services also have free tiers with limitations that might not be enough for your. You'll just have to find one that works for you.

    webmasters.stackexchange.com/questions/26107/is-there-a-free-file-hosting-service-with-an-exposed-api-for-accessing-content

    github.com/public-apis/public-apis

    A common practice for games often use to share this kind of data is to convert it into a copyable text string, where people can stick it on a website or something like pastebin.

    Obviously if have your own website/host you can set up your own system, which would be the proper way to do it.

  • You do not have permission to view this post

  • What do you mean by "it accept"?

    You can refer to the content of a text input box with the expression textinput.text, and you can use the keyboard object's condition trigger 'on button pressed', which would be enter in this case.

  • Ok I was wrong, there are a lot more alternative spellings of countries than I knew of. But here is a handy list - en.wikipedia.org/wiki/List_of_alternative_country_names.

    It's still just a matter of building your list once though, it will just take some more work.

  • What do you want to do about spelling errors? After all, Iran is not Iraq, so the user should probably spell it correctly to get the right answer.

    Anyways you can probably rely on the end user device's own spell checking and autocorrect capabilities for that (or intelligence).

    For abbreviations, just add them manually. There are only 195 countries in the world, and only a few of those have abbreviations, so it's not like your list will be inflated dramatically for adding an additional few more correct answers. Using OR conditions (among other methods, depending on how you have it set up), will allow you to have multiple valid answers per country.

  • I use construct for utilities all the time, it's actually my main use case.

    Nw.js can handle local files, and authentication can be done however you want it to be done, online or offline. Online would obviously need some external service to interface with.

    Ajax will let you communicate outside local files.

  • Look into permutation tables.

    construct.net/en/tutorials/using-advanced-randoms-2787

  • Best practice - actually read the manual. It's really not that long. You don't have to memorize it.

  • You can use the system compare two values, spider.count=0, as an alternative.

  • What do you want to do with the distance?

    You could set a text object to that expression, and it would display the result.

  • Are there any spiders at all? Perhaps there are no spiders that are not on screen either? Which would make the condition fail, and action not run.

  • That's tricky, if the shapes can be anything. I imagine using the canvas plugin to take a snapshot, then count contiguous pixels with a flood fill would be a straightforward way to go about it.

    Edit: or rather than a flood fill, sizing the canvas to fit the shape and scanning line by line would be even more straightforward.

  • The most straightforward way would be to check each shape at every free square, in every orientation, until there is a valid move, then stop the loop. If the loop completes without finding a valid placement, then game over.

    It is a brute force method that doesn't scale very well, but there shouldn't be any problem within set constraints like a 10x10 board.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads