I am new to GameplayKit
as most are given its lifespan, and have been trying to figure out the following..
I have an SKNode *enemy
that has already been given quite a bit of work and customization from movement to style, habits, etc. all from SpriteKit
. My question is such:
- How can I "link" my enemy node to a
GKAgent2D
so that it controls this nodes movements?
I understand that you must create a GKComponent
and represent this component with a Sprite Node perhaps with a certain texture of choice. But I wanted to know if there was a way to use the built in "control movement" methods that GameplayKit
offers on an already existing node. If the answer is "No" please just say so and explain why perhaps? I appreciate any help. Thanks!