Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Wow this game also has phone controls, Good job 

I played it on my phone and it was smooth although aspect ratios were messed up like always, don't know if it's fixable or not in godot .

I don't know how you guys created that Firefly thing that follows near player, what's the trick, did you made it's position as player.globalposition + a random vector2.

(+1)

the mobile controls are a result of one night's procrastination; glad to hear it worked smoothly :D

the main things about the firefly are:

  • she circles around the center point
  • center point lags a bit behind the player using lerp()
  • we don't change her position directly, only velocity (with max limit set)
  • she actually has a real physics body that's avoiding collisions with walls
  • the wall avoidance doesn't work all the time successfully, so there's a wall-sliding recovery for that, and, as a last resort, teleportation if she's stuck far away from the player for a set amount of seconds) :D