Hi!
We have been using AC for a couple of months.
I have managed to build a small playable proyect, but today I have stumbled with a problem.
I want to place a chicken in the scene with a path attached and pauses in each node. The chicken has to walk and take a break (always in a loop)
I have follow all the instructions I have found in the forum. I have achieve a walking chiken with no pauses. But, when I set a pause in the "Node wait time" the path doesn't work...
I suppose I'm doing something wrong...
Let me show you some screenshots:
https://drive.google.com/file/d/1HnaLsTyT-XO25bvTJYyY4DVf3L1hAoHR/view
If I set the scene like this, everything works but the chicken never stops:
https://drive.google.com/file/d/1js0q5QPGsliLinQRfJdMuGTC26PB4Jsi/view?usp=sharing
This is my "On start" set up:
https://drive.google.com/open?id=10oiEsjjpSkBTP9lFs_VZ7LtoY01UgFGp
I have try to set pauses with cutscenes too, but doesn't work either.
https://drive.google.com/open?id=1AVm7HNnhHSl3jCsrD3hTS4jjMdi3fvfP
So, the chicken moves if the number in "node wait time" is 0. But if I change the number, nothing happens. There is no movement on the path.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @Beatriz.
The way your Action and Path are set up look correct, and I can't reproduce any such issue. What's a typical "Node wait time" value you're using?
What are your AC and Unity version numbers, and do any relevant messages appear in the Console? I'm assuming that the scene is in 2D and that the character is on an active NavMesh.
Hi Chris
I'm using a value of 1 in "node wait time"
I'm using Adventure Creator version 1.68.3 and Unity 2019.1.10f1... Maybe I need to update Adventure Creator?
About the console...Nothing on it. It's seems empty...
And yes, the scene is 2D and I have an active NavMesh around the NPC... I thought the NavMesh must be ok because the paths works if I don't set any pause. But it's the first time I try to make a path, so I really doesn't know
I'm going to try to delete all and rebuild a new path...
Hmm... I have rebuild the path in another scene, but still happens. But I have discover something new.
My process is:
1. IN AC Game editor > Create a Path
2. With the Path selected I add some nodes in the inspector
3. Set the action OnStart "Character: Move along path"
At this point, everything works fine. The character moves along the path with no pauses.
4. When I add a "Node wait time", the NPC don't move. The characters stands at the first point (so the teleport to the first point works fine) but doesn't walk to the seccond node.
¯_(ツ)_/¯
With the same process, I have tried to change the NPC of the chicken to the main character (a little girl). I have place the main character (player) on the path and the same error happens.
But then, I have try to do the same thing with a another NPC. I have one more character in the game (an old man) that only have a idle animation (sitting).
With this NPC, the loop works perfect and with the correct pauses...
https://drive.google.com/open?id=1U0tkmsNy3FXfO3TuV1K5LG6UXknNysUI
I don't know why... It only works with this NPC... Can be related with the animation tab? I can't see any other diference between this NPC and the other characters.
Thanks for the details. Your AC version should be fine - at least, nothing has changed related to this in v1.68.4.
If it's working for one character, and not others, then it will be down to some difference between them - though I can't guess what difference would cause node-pausing specifically to not work.
If you can share screenshots of the Bird and Old Man NPC Inspectors (fully - including any additional components on their root objects, as well as their "Sprite Child" objects), then that may reveal the problem.
I've been testing with the 2D Demo game's own "Bird" NPC, found in /Assets/AdventureCreator/2DDemo/NPCs. Does dropping him into your scene and applying the same movement command work for you?
Ok! I have found the problem!
Following your instructions, I have compared the inspector of the bird vs the old man. I was planning to make screenshots, but I spot the diference by myself.
So, the bird (an my main charcter too) are set with "Retro-style movement".
If I disabled this settings, the loop and the pauses work fine.
I like retro-style movement in my main character, but I have no problem in disabling retro movement in the chicken NPC, so my problem is solved.
I don't need to make loops in my main character.
If you need any screenshot for documentation, let me know.
Thank you - recreated now. I shall look into this.