oosyrag's Forum Posts

  • Try using a tiled background for the sectioned life bar.

  • I'd recommend sticking with JSON for flexible amounts of data - arrays are (generally) better for fixed sets, without getting into strings and tokens which could potentially make things even messier (but it is an option).

    If you want to add me on Discord (Risuga) I don't mind working on this directly through DM, since there will probably be a lot of little things that need addressing or changing for these kinds of systems. (Love your art style BTW!)

  • Nothing.

  • I remember working on this with you, and I'm reminded I had meant to do a clean version with just arrays but I forgot! Sorry about that. It did get a little complicated, I think you had a JSON structure in place that I had been modifying and working around.

    Anyways for your specific question, trigger the function by On Touched Button in event 3, then pick items overlapping combiner in event 4 (as the first condition, you have it as the second - order matters in this case).

    dropbox.com/scl/fi/07suxzt788i2at8ntquu2/breadbird.c3p

    It does get more complicated when you want to use more than two ingredients. Did you have an idea how many different ingredients a recipe might have up to? Or how to handle conflicts if a+b=1 and a+b+c=2? You can prioritize the most ingredients, simplest ingredients, or simply design your recipes not to have conflicts. Do you allow a+b+c+d to result in a "2", with the d just ignored? Or would that be invalid? Having the details ready helps when putting together a system like this.

  • Determine the "slope" by saving targetZ/targetDistance to an instance variable, and setting the bullet z to distancefromorigin*slope every tick.

  • Yes.

    Download it ahead of time and play offline. construct.net/en/tutorials/offline-games-construct-8

    Run a web server on the local device and access via localhost.

    Run it on a web server on the local network and access by local IP or local DNS.

  • Local storage is data saved in the browser cache on the device.

    The issue previously discussed is how the game itself gets downloaded to the device from the server, and how it gets updated and replaced. That should have nothing to do with local storage.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • construct.net/en/tutorials/offline-games-construct-8

    Basically it should always update, unless your web server is serving cached pages/data. This can be configured on your web server.

  • I believe that's what CORS is for. You should be able to set up a whitelist to allow specific domains to access resources on your server.

    CORS is a server side setting though, I do not know if Netlify supports user modification of CORS policy.

  • Layered tilemaps are really really powerful. There's just so much more you can do with layered maps that you can't do (or at least is harder to do) with a single one. But if it's a simple project and that's all you need, then go for it. It's all a matter of whatever makes it easier and faster to work on your own project.

    I don't think it's a good idea to force yourself to use one consolidated tilemap if it gives you new mechanical issues to work through. On the other hand, if it makes more sense to you that way and is easier to work with, then that makes sense too. In the end, as long as it works right the player isn't going to be able to talk a difference anyway. Just stay flexible.

  • Perhaps if you went into examples and typed "tower defense" you might have found editor.construct.net

  • You can make it global, so it doesn't get destroyed when changing layouts (hide it somewhere or make it invisible).

    Or you can store the data in a global object like an array or dictionary, or use global variables.

  • Not sure exactly what you're trying to do, but you can use an array that's tied to the dictionary in a container to store sets of values, and array data can be retrieved as json. Or, you would simply just use keys within the dictionary, considering the dictionary itself is a data storage object to begin with...

  • Could be a scaling/rounding issue.

    I recommend using a tiled background.

  • You do not have permission to view this post