oosyrag's Recent Forum Activity

  • To round to the nearest 'n',

    round(value/n)*n

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

  • Try Construct 3

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

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

  • 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

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies