Great morning all,
Once I provide an input, I want a dog NPC to run to the right for a second and turn around and come back. It sounds simple but nothing is working properly. Its essentially like a patrol but just one loop.
The trigger for the action is working and the dog will run to the right but once it turn around, it just runs in place for 1+ seconds and then comes back half way. I dont understand what im doing wrong.
I tried in 2 ways:
Add platformer to object
Simulate pressing Right
On collision with trigger box Simulate left press
Also the code from the image.
In general whats the best practice for trying to create a behaviour like this where you want to trigger an action and then have it followed by another? Is this where signals come in?
thank you again
Also I noticed if I move my character, it will move the dog NPC in the same direction. Is this somehow related to them both having Platform behaviours?