I made a new level called the-eye-of-the-fortress and I’m trying to program Zana to attack the ogres because there is nothing that makes her attack automatically. Somehow, she keeps attacking herself and this is a problem with all my other heroic sprites (except commendable types).
Here is my code:
existence. Exists This Thang exists and takes part in the level simulation.
physics. Physical This Thang has physical presence (position, size, shape).
(21.650000000000002, 41.69, 1)
magic. CastsRaiseDead This Component gives the Thang a raise-dead spell.
magic. Casts This Component gives the Thang the ability to cast spells (from other Components).
combat. Flaps This Component gives the Thang a flapping wind gust ability.
combat. Paralyze Paralyzes the target
combat. Pacify Significantly slows the target and reduces the attack damage of the target. Deals small damage proportional to the attacker’s attack damage
combat. AttacksNearby This Thang has an attackNearbyEnemy method.
combat. Attackable This Component gives the Thang health and the ability to take damage.
combat. Attacks This Thang can attack.
existence. Spawns This Thang can spawn other Thangs.
vision. Sees This Thang can see other Thangs.
combat. HurtsToTouch This Component makes the Thang hurt any other Thangs that touch it.
targeting. RotatesToTarget This Thang will rotate to face its target.
targeting. Targets This Thang can target other Thangs or positions.
collision. ProximityTrigger Triggers a method call when approached.
inventory. Equips This Component lets the Thang equip Items. It pulls in all the Components needed for a basic, versatile Thang.
ai. FindsPaths This Component lets the Thang use pathfinding when it moves, and gives it access to the AI System’s pathfinding data structures.
collision. Collides This Thang collides with other Thangs.
event. HasEvents This Thang tracks events that happen to it on each frame, like ‘take-damage’.
effect. HasEffects This Component makes the Thang susceptible to effects.
action. Acts This Thang can take actions (like ‘move’ and ‘attack’).
alliance. Allied This Thang is part of a team.
ui. Scales This Component allows the Thang to change its visual scale.
hearing. Hears This Thang can hear other Thangs.
ui. Selectable This Thang can be selected by clicking on it.
hearing. Says This Thang can talk.
movement. Moves This Thang can move (either by running, rolling, flying, or swimming).
programming. HasAPI This Component lets the Thang specify its API to other Programmable Thangs. You can also use it to add random properties to a Thang.
“findNearest” | “hasEffect” | “distanceTo” | …
“id” | “health” | “pos” | …