Enemies

From Unofficial EFPSE wiki Extended
Jump to navigation Jump to search

Enemies can be added through "Enemies Settings" menu in "Entities Settings". The menu is almost the same as for weapons with a few differences: you can add new entries. to do so enter the name of the enemy and either press Return or click a button to the right.

You can also set the scale: by default, 160x160px resolution sprite takes the space equal to the height and width of a single map block. If you used, for example, a 32x32px sprite, and want it to be as high, as a single map block - you have to change it scale to 160/32 = 5.0 value. If you have a 320x320px sprite and want to fit it into a single map block, you use 160/320 = 0.5 scale.

This windows shows enemy sprite relative to one tile. This is made to let you check if your sprite's height fits a single floor.

Enemy properties:

  • Health - enemy health
  • Damage - damage dealt to player
  • Speed - enemy speed. In units per second
  • Radius - enemy radius. Used for collision checking with player
  • Drops - item this enemy drops when dying
  • Attack delay - amount of seconds enemy wait before next attack
  • Explosion radius - if set to a non-zero value enemy will explode after death
  • Projectile speed - if enemy uses projectiles this sets projectile speed in units per second
  • Is shooting - if set, enemy will shoot instead of moving closer to attack
  • Uses projectiles - sets if enemy uses projectiles
  • Fullbright projectiles - disables or enables lighting on projectiles
  • Delete after death - removes sprite after death