0 Favourites

How do I create a similar game to "Flow Free" ?

  • Well, explaining better, I'm not trying to create an equal playing, but use the same mechanics of the game. Where the player touches the point and extending the line going through the given square.

    So, how do I do this? :

    * Move the horizontal and vertical lines in a controlled and defined manner.

    * Create this line, as the player moves on the field.

    * Recognize what is going right and left.

    For those who do not know, the game is this:

    https://play.google.com/store/apps/deta ... w&hl=pt_BR

    If someone can give me a light on this situation, I would be very grateful.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • [quote:3dddxys4]* Move the horizontal and vertical lines in a controlled and defined manner.

    Well you have a start point (where you started touching) and a end point (where you're currently touching). You could calculate the angle from start to end and use some choose a direction if the angle is close to 0, 90,180 or 270. There are conditions that help with this.

    [quote:3dddxys4]* Create this line, as the player moves on the field.

    Every time you move create a circle at the player. For the line between the dots you can make a rectangle sprite with it's hotspot left-center. It's height should be the diameter of the circle and it's width should be the distance between one move to another. So you create this sprite at the player and set it's angle toward the previous circle. You have the direction moved so you can add 180 to that to get the angle.

    [quote:3dddxys4]* Recognize what is going right and left.

    Beyond visualization, which the previous question had a solution for, you can store the inAngle and outAngle in instance variables of the circles. Just set them in the moving stage.

    And my experiment of the day trying out some different ideas.

    https://www.dropbox.com/s/yi7fthhebl9nt ... .capx?dl=1

    /examples24/flowfree.capx

    Not really helpful, but it has an amusing flaw.

  • R0J0hound

    I do not know how to thank you, I was hoping someone simply comment on something related and indicate a direction to follow. But you went further than that, thanks for the help. XD

    I've had something done, but with his help I can review certain aspects of my test.

    Maybe I'll contact you again, to take any more questions, I hope it's not a problem XD

  • The link is broken could you upload it again? Thank you so much

  • link updated

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)