Hi All,
This is my first test game and I've gotten around most problems, but there is a few I just can't figure out.
Here is my setup:
I've got one actor, and one, I guess you call, entity, which has a talking and sitting sprite. I added the entity to my project by right clicking, add entity. I deleted all the pacman pictures and imported my own files, I set up the sprites and configured the script to go to the correct sprites for default(which is sit.sprite) and talk(which is talk.sprite) Once I've done this I went to SceneEdit and clicked Add Entity. I set the sprite to sit.sprite from my progject files and added the script doctor.script that I modified earlier. I named the object "Doctor"
Now, here is my problem.
When I open the Doctor.Script I can make him talk using this.talk("Hi, blah blah.); You see the dialog appear on screen, but it's still playing the sit.sprite. I've tried to force the animation, can't remember what command it was, and it worked, but it seems like it pauses the game for 2 seconds and then the game resumes. I also tried using the Async to force the animation also, but it had the same affect.
My Second Problem
Ok, I think I'm missing something here, maybe I have to add something in some other script file, but here is my second problem. When my character goes to look at book, in the book script I add the default script and change the code for when actor looks at book to this.
actor.Talk("Hmm.... What an interesting looking book..");
Doctor.Talk("Hey you, get away from there!");
When I change it to this, I can't interact with the book at all, I can't look or talk or pickup, but all the other interactions work for other items. When I created the Doctor I made sure that all the names matched, and I can't use "this" command in the book script. So how do I fix this?
Thanks in advanced for helping me. I know it's probably something simple that I'm overlooking.
-McCloud