Hot answers tagged

3 votes

Performance for range of effect in city builder

Sounds like a use-case for influence maps. For every kind of building effect you have, you create a two-dimensional array of integers with the size of your map. These are "influence maps" ...
user avatar
  • 112k
1 vote

Collision callbacks not working

Your scripts are okay, your issue is due to scene setup rather than coding. In order to detect a trigger collision, OnTriggerEnter2D() has some requirements: Both objects must have one ...
user avatar
  • 4,037
1 vote
Accepted

How to animate a 2D top-down fish?

A solution was using the skeletal animation approach and adding inverse kinematics (let's call this IK) to the tail. I made it so the tail IK wouldn't rotate with the body which meant that the tail IK ...
user avatar
1 vote

Draw a graph as a world map in UI?

I ended up storing some information at map generation time that guides map layout in UI. I generate the map nodes into a grid (to help bound the total size of the map) and lay them out as follows: ...
user avatar
  • 417

Only top scored, non community-wiki answers of a minimum length are eligible