oosyrag's Recent Forum Activity

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

  • Try Construct 3

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

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

  • I would expect this OR-condition to either pick all of the instances that are to the left of X=500, or pick all of the instances that are above Y=500. Even as we're talking about this, I struggle to think of what else it could logically do.

    You say it should be one or the other, so which would your actions apply to? It makes sense to me that sprites that meet either criteria would be picked for actions to happen.

    Based on this thread, it sounds like what would happen is that it would pick all of the sprite instances that are to the left of X=500, while un-picking all of the sprite instances that are above Y=500. Is that what is supposed to happen?

    If picking was reset between or conditions, that is what would happen. Which isn't what currently happens, but that was the provided example of what would happen if picking was reset.

    > You could file a suggestion, but based on the problems I've shown, I don't see a better way it could work unfortunately! Then there's also backwards compatibility: we can't just change how thousands of existing projects work...

    Would it be possible to add a true OR condition? Or would that require fundamentally changing the way things work.

  • We do have both ways now though, an or block doesn't reset picking, and an else-if does.

  • I haven't looked at the source yet but if the problem is that you don't know where to position your border because the position can be random/variable, then the solution is usually to save the randomized value in a variable so that it can be used for other things later.

  • Iirc example projects and templates are royalty free, but if you want to monetize a project and anticipate making more than a certain amount of money you'll need a business license for Construct 3.

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