Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

expanding the assassin idea you can make it transparent and green, and slowly loose transparency and turning into a red. Or you got a chance that one of your cell will start turning red, and at this point you need spot it and start to move it out. I am asking just in case, I’m so inspired by this mechanic , can I tweak it a bit and maybe use it in my next game? I will add you in credits in that case. I mean the mouse and gravity thing , not the whole theme 

(+1)

Sure! Feel free to use the mechanism, no credit necessary :3 It's really simple. Create a Area2D that always follows the mouse

position = get_global_mouse_position()

Then, each frame, for everything that is within the range, change their direction

position = position.move_toward(p, strength) #in the game, strength is 0.2 (before upgrade) and 1.2 (after upgrade)

direction = (position - mouse_position).normalized()