mcraes's Forum Posts

  • 5 posts
  • calminthenight This solution looks like it may do exactly what I was looking for. Initial tests don't seem to be presenting the glitches you mentioned. The code will take me a little time to dig into and fully understand, but it looks very promising. Thanks for the quick response.

  • mrcgkh Thanks for the reply... I took a look at the solution and it implements functionality that I had working where the boxes expand until they collide with another object, the continued expansion on non impacted sides is the issue I am looking to solve. However, the destruction and creation of objects based upon the touch events are something I will take into consideration in my final solution.

  • I have some simple logic that creates a square shaped sprite when the user touches the screen, this box expands evenly on all sides while the user holds the press.

    I want the expansion to halt on any side that collides with another object.

    For example, in the image below...

    The user presses and holds, the initial box is created and starts to expand.

    The user continues to hold the box expands evenly on all 4 sides.

    The user continues to hold, but the right hand side connects with another object so the expansion of the right side stops and the expansion continues on the left, top and bottom sides.

    What would be the best way to implement this type of expansion?

  • Thanks for the link, this looks like what I need.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to implement functionality that would have a sprite travel along walls around the outside of the play area. As new walls are added to the play area, the sprite would react to these and move around them as they intersect the original walls.

    Example 1, the sprite moves around the wall and when the additional wall area on the right is encountered, it moves around that as well.

    Example 2, when another area of wall is added (this time on the left hand side) the spite reacts to that as well and moves around it.

    Tagged:

  • 5 posts