dop2000's Forum Posts

  • A common way to do this is with Pathfinding behavior. Calculate the path to the player, then follow the path. Just make sure you are not doing this on every tick - use Timer behavior or an event like "Every N seconds"

  • There are no strict rules, every project is unique and you can organize event sheets any way you like. The main factor for me is convenience and ease of use. I don't enjoy working with giant event sheets with many hundreds or even thousands events. And I don't like when there are too many event sheets with just a couple of lines of code in each. Break the code into manageable blocks, use groups, make sure you include only the necessary sheets.

  • You can add "Trigger once" as a second condition after "Variable=0".

    But the best method is to create the sprite in the event where you set the variable to 0.

  • You can set the layer (with menu buttons in Menu layout) as Global.

    Then in your Game layout add a layer with the same name. And you will have menu buttons in both layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, the snapshot size will be different, depending on the window size. You can use SnapshotWidth and SnapshotHeight expressions to convert from image to snapshot coordinates.

    I'm afraid on some screens SnapshotWidth and SnapshotHeight may be smaller than the image size, and you will lose some pixel information.

    So this may not be the most reliable method. I would use an array instead.

    .

    There are probably ways to read pixel data from image without the drawing canvas. See this comment:

    construct.net/en/forum/construct-2/how-do-i-18/simple-scorched-earth-worms-129595/page-2

  • If your character is moving horizontally only, then instead of "MoveTo On Arrived" event you can simply compare X-coordinate. If Character.X=targetX, then it has arrived.

    You can use Tween instead of MoveTo. Tween will change X coordinate, and Sine will change Y.

    Another solution is to use a separate invisible sprite for character, with MoveTo, but without the Sine - let's call it CharacterBase. And you will have to set your visible Character sprite position on every tick to CharacterBase + Sine offset.

  • Delphawi So if you set the inputbox font larger than 16px, the screen is not resized when mobile keyboard opens?

  • each node would know the ID of the previous node and the next node

    AllanR It's a good idea! Since it's a closed circuit, you probably need to store just the next node ID. The difficult part will be checking the connection to the next node through wires.

  • You can define two image points on each object. Maybe snap objects to a grid when dropped, to make the points align perfectly. But I don't have a complete solution for you, like I said it's a difficult task, I only have a vague idea of how it may be done.

  • Have you tried opening that C2 project? If it's not using any unsupported addons, it should work in Construct 3.

  • You can try checking objects one by one starting from the battery, for example. Pick one of the objects overlapping the battery. Let's say it's a wire. Then pick the next object overlapping the wire. As you move from object to object, save them to an array or a text variable. And then check if the sequence of the chain is correct.

    But this will only work for single loop diagrams like in your demo. I have no idea what to do with something more complex like this:

  • Yeah, I've seen that post, I don't know how to solve it. If each part was unique, it would be easier. But in your case you have multiple identical elements, which can be rotated and connected to each other in many different ways. So it's a difficult task.

    For example, can this be considered as correct solution?

    • Post link icon

    Thanks, Tom!

    One more question - I see quite a lot of refunds. One asset that I published two days ago has 5 sales and 4 refunds (80%)!

    I got a message from one buyer who said that he purchased several copies of my asset by accident, because the website was giving him errors. I wonder if this is the main reason for most of those refunds?

    • Post link icon

    Question - if I release a new version of my asset, will people who've purchased it before be notified? And will they be able to download it?