Author Topic: NPC disappears during walking animation?  (Read 29 times)

Hawkinzon

  • Newbie
  • *
  • Posts: 20
    • View Profile
NPC disappears during walking animation?
« on: January 09, 2019, 01:25:40 am »
Hi,

I have encountered with a custom NPC i made. I have made a "Cutscene" were the hero and this npc is running to eachother, but as soon as the npc's path reached the last value (path_movement:set_path{4,4,4,4,4,4}) the sprite disappears? If I change sprite to ie. Zelda this works perfectly and the npc stops were it should be. Do I need to create a "stopped" animation for my custom npc?

Anyone know what the problem might be? I'm pretty new to this so please be forgiving :)
If anything is unclear, just ask and I will explain more

Max

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Re: NPC disappears during walking animation?
« Reply #1 on: January 09, 2019, 05:58:23 am »
Yeah, when you apply a movement to an NPC, the engine knows you probably want the NPC to be walking, so it sets the walking animation, then automatically calls the stopped animation when the movement is finished.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1162
    • View Profile
Re: NPC disappears during walking animation?
« Reply #2 on: January 09, 2019, 08:21:17 am »
This is true for NPC of type "usual" (somebody). Use an NPC of type "generalized" (something) to avoid any default behavior.