netdzynr's Forum Posts

  • Am looking for some help with a super simple multiplayer setup: a game host, and a game peer. After launching the host file/instance, launching the peer file never connects on the first attempt -- I have to close the peer file and relaunch to get a connection with the host. When finally connected, the peer often shows up in the host with "2" appended to the name, which would seem to indicate that the first peer connection took place, but the host didn't update.

    I've pared down the code to the bare minimum and been staring at this for hours, but can't see what the problem is. What dumb mistake am I missing?

    Host File: dropbox.com/s/4mtm26ob5wmpceo/GameManager2.c3p

    Peer File: dropbox.com/s/n14k7fa7b6qtyie/GameClient.c3p

    Thanks in advance for taking a look!

  • Didn't know about the time scale option, thanks for this. I don't think I can use the black/fade cover option but may not be necessary. Will give it a try.

  • I have a project that has a stream of particles running horizontally across the screen. This is working fine, but the particles take time to get moving and fill the screen when launching the project. Instead, I'm hoping to have the particles already spread across the screen and moving when the project starts. Is there a way to do this?

  • Thanks guys, these are some interesting/useful ideas.

  • I've been struggling with this for a while now: how to pull off dragging a sprite and constraining its position to paths between the points of a geometric shape (in this case a triangle). I'm currently using a formula to set an X/Y angle of drag relative to the position of the center of the triangle, but it would be so much easier if I could just feed some points to a function.

    Another option I considered was tracking the position/rotation of a sprite dragged radially around a center point within the triangle, and figuring out the sprite's point of intersection with the triangle's sides, but couldn't figure out the math for this.

    Trying to accomplish dragging like this:

    i-view.net/construct-shots/tri-drag.gif

    Any suggestions?

    Tagged:

  • Thanks for the helpful response. Not sure yet if I can keep the tile as part of the container, but good to know from your explanation. And with that arrangement, layering seems to stay intact more reliably when moving a container to the top of the layer.

  • I have a container comprised of 3 objects which is intended move as a group when a target object is dragged.

    Currently I'm separately pinning each of the components of the container to the target object, which seems to work. But every time I want to interact with the container as group, it seems I have to manually pick all the components of the container, which is tedious.

    Demo here.

    I supposed I can write functions to handle all the object picking, but is this really the only way to treat containers as a single object?

    Thanks for any suggestions for improvement.

    Tagged:

  • Is it possible to render custom Javascript output in a project, either in a project layer or as a background behind the project?

    The Javascript examples I've been able to track down in the forums discuss communication with Javascript functions, but so far I haven't been able to find anything about displaying Javascript output. I'm hoping to use the output of Javascript libraries as a background in my project (not running on a mobile device) -- specifically looking to use Vanta.js which appears to rely on three.js.

    Can this be done in C3?

  • Thanks for the suggestion. For the moment, I can't see how to lock the invisible sprite's dimensions and pin it to the 9-patch object in the layout view without manually tweaking things every time I want to modify the layout. So I decided to go with an (overly complex?) solution that establishes a hit region on each 9-patch object and some code that tests for the existence of any points falling within the hit region.

    Are there any tutorials around that you'd recommend for containers?

    Thanks again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there any way to make a sprite whose content tiles when the sprite is resized?

    http://i-view.net/construct-shots/tiling_sprite.gif

    AFAICT, the 9-patch object won't work as it will scale parts of the sprite.

    Any other option here?

    Thanks!

    Tagged:

  • I need to be able test for the overlap/intersection of 9patch objects. Sprite overlaps work, but so far I can't find any way to detect 9patch overlaps. I need to use 9patch objects because I resize them disproportionally in the layout.

    dropbox.com/s/12gprs8m5xi6hwt/9patch_intersect.c3p

    Is there any way to do this?

    Thanks for any suggestions.

    Tagged:

  • Thanks for the suggestion. Physics on all objects was one of the first things I tried, but the constraining behavior seemed even worse, probably because didn't have things set correctly.

    I updated the test file with (what I believe are) your recommendations. Could I ask you to take a look again and tell me where I'm going wrong?

    dropbox.com/s/bv0mhnjfwpt8owe/goo_test.c3p

    Thank you

  • Thanks for looking. I was trying some alternate methods after reading up on physics and forces (didn't realize I was working on the shared file). But whether using physics or solids and bullets, the outcome is the same: as soon as the barrier objects are moved, the ball objects flow outside the barriers.

    My hope was to eventually create a maze of sorts, so the thicker barriers are not ideal, but I'll give that a go. Given what I'm trying to do, what is the better approach: physics, or bullets and solids?

  • Hi all -- am looking for help in figuring out how to limit the movement of objects that have physics applied. I followed this Construct tutorial to simulate water:

    construct.net/en/tutorials/create-water-games-2172

    But now I want to move the "container" holding the water. I built this test:

    dropbox.com/s/bv0mhnjfwpt8owe/goo_test.c3p

    When I rotate the containing objects, the water objects shift outside the container. I spent hours trying to figure out some combination of physics settings to keep the water contained in the box, but nothing I've tried works.

    What can I do?

    Tagged:

  • I have a ring of 32 images that is dragged radially (in a circle). Dragging is working fine, but I'm having trouble figuring out how to account for the initial X,Y click offsets, so the circle of objects doesn't jump when initially dragged. In the demo project (link below), when clicking toward the left side of an object and dragging, you can see the ring jump to match the mouse position. How can I determine the initial X,Y offsets to use to account for clicking anywhere on any image?

    Demo: dropbox.com/s/29swpgn0wmbtuel/concentric_sample.c3p

    Thanks in advance for any suggestions.

    Tagged: