Author Topic: Actor Movements for Newbie  (Read 3082 times)

0 Members and 1 Guest are viewing this topic.

Offline Lord Hart

Actor Movements for Newbie
« on: October 19, 2002, 11:40:04 PM »
Olleh!

I have only just started getting into developing a game in SCI. I started doing it in AGI and then moved over to SCI and began from scratch.

I just completed doing the tutorial to get through stuff I need to know, and my problem is with actor movements. I have noticed that the actor goes to the first destination you asign him along the dPath, every time you click on a place to move or move with the keypad.

Is there anyone who could help me with this. I just want the character to move along and not keep turning back.

I would appreciate it.

- The Ultimo



Offline juncmodule

Re:Actor Movements for Newbie
« Reply #1 on: October 20, 2002, 02:49:53 PM »
If you could post the code your using I might be able to help you. I've never had that problem though...even though I've used DPath before...

-junc

Offline Lord Hart

Re:Actor Movements for Newbie
« Reply #2 on: October 21, 2002, 05:35:25 PM »
Heres the code:

(aMan:
  init()
  setCycle(Walk)
  setMotion(
     DPath
     45 85
     120 140
     250 155
     315 155
     )
)
)

I don't know what could be wrong, as it is basically the coding from the tutorial, just with my own coordinates.

- The Ultimo

Offline juncmodule

Re:Actor Movements for Newbie
« Reply #3 on: October 22, 2002, 06:42:21 AM »
Can't say I understand why that isn't working. In your example you posted you do have one extra brace at the end though. Perhaps you are catching part of something else in that. I tried to figure it out last night. I couldn't duplicate what you were talking about but, I did have problems getting my actor to follow the right path!?

Does anyone know of any bugs or tricks that have to be done for DPath to work right?

-junc

Offline fck

Re:Actor Movements for Newbie
« Reply #4 on: November 08, 2002, 01:52:57 AM »
Same here!  Could not find an error.  Did you resolve the problem yet?  Here is my code which works fine on my PC

     /*************************************
      * Add the rest of your initialization stuff here *
      *************************************/
     (aMan:
        init()
        setCycle(Walk)
        setMotion(
            DPath
            45 85
            120 140
            250 155
            315 155 )
     )//aMan
  )//init
)//instance
/************************************/
(instance aMan of Act
   (properties
       x 300
       y 50
       view 200
   )//properties
)//instance
/************************************/

Offline Lord Hart

Re:Actor Movements for Newbie
« Reply #5 on: November 14, 2002, 09:00:11 PM »
Olleh!

Thanks for the help guys. Unfortunately, I couldn't get the code to work for the movement, so i am concentrating on other parts of the game i'm making at the moment.

When I come back to the Dpath movements, i'm just gonna start the code from scratch, in case it was something that I did wrong.

- The Ultimo

Offline RJD

Re:Actor Movements for Newbie
« Reply #6 on: November 26, 2002, 05:35:24 PM »
I have had the same problem. What room where you trying to use DPath in. I tried it in the TitileScreen. I
THINK it said something like "Whats DPath" (Thats in my words, I don't remember what it really said).  >:(
Beep Beep Boo Bop Boo Beep

Offline Lord Hart

Re:Actor Movements for Newbie
« Reply #7 on: November 26, 2002, 05:43:16 PM »
I was doing the Dpath on rm001. As I wrote, the actor continues to go to the first coordinates you set, every time you move.

So, say he begins. He makes it to the last spot and then you move. He will go to the first coordinates and get stuck somewhere if anything is in the way.

I also founf out that it was doing it straight from the Tutorial as well. I re-did the tutorial and it stuffed up still. So has anyone got Dpath to work?

Offline RJD

Re:Actor Movements for Newbie
« Reply #8 on: November 26, 2002, 05:59:15 PM »
Ill keep trying, but most often it doesn't even compile for me.  >:(
Beep Beep Boo Bop Boo Beep


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.059 seconds with 22 queries.