Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
Thank you for kind words! The ball pull to add force element works like this:

Script checks if your cursor is over the ball > Checks if u hold your mouse button down > if yes then it starts calculating distance and the direction between the ball and your cursor > checks if u stopped holding mouse button > Add force in the opposite direction to mouse multiplied by distance .

I Hope I did help you somehow .

Hit me up after the jam if u want any more informations :D

Have a good one :)