Roll a ball like "Roll the ball"

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey there,

    I'm working on slide puzzle game like "Roll the ball". The basic goal of the game is to create a path for the ball to reach the finish by sliding blocks. Depending on the board/blocks there are multiple possible pathes.
    So far sliding and all the other stuff works well and I've figured out a "non-static" way to detect if the puzzle is solved or not. However it's giving me a hard time to find a solution for letting the ball roll through the maze. All blocks are "Actives", the pathes are transparent. I've tried different approaches like simple "Pinball Movement" (which can't move upwards and bounces heavily) or custom collision-detections (which quite unreliable and always look very unsmooth and far away from a rolling ball). I assume something like "pathfinding object" would make the ball turn left or right pretty streight... and so on...
    So, I hope someone can help. I'm doing this for my son. He's six years old and likes this game very much, but the original one is littered with ads, therefor I came up with the idea to make a game myself :)
    Any help appreciated, THX in advance!

    Please login to see this attachment.

  • I'm doing this for my son. He's six years old and likes this game very much, but the original one is littered with ads, therefor I came up with the idea to make a game myself :)

    Kudos to you! I hate how ads (and their evil cousin, free-to-play addiction-based mechanics) have become the norm in mobile gaming. Bravo for going to this effort to make your child's life a little less garbage-cluttered.

    It's hard for me to tell what the problem is without seeing some of the code and/or a video of the game in action (though there's no guarantee I'd be able to help even if I did see those). Are you saying that the ball does make it through the tunnels (or at least some of them), but just not in a very realistic way? Or that it doesn't make it through them at all? If it's the former, perhaps try some of the physics movements. I don't know much about them, but I imagine that they might give you a good result. Perhaps rather than trying to steer the ball left/right/up/down, you could let gravity do all the work, while you switch the source of gravity periodically (eg. every time the ball enters a new tile, set the gravity to be coming from the same end as that tile's tunnel exit; so in Solution 1 that would be south, south, east, north, east, south, east, north, north). I suppose you would use the Physics-Bouncing Ball with a very low elasticity setting to minimise the bounce.

    I don't know if there's an option to change the direction of gravity. But if not, then you could try the "Physics - Magnet" object, and place a bunch of invisible magnets around the place to pull the ball where needed.

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!