how I can add life to an actor?

RUPASRUPAS Member Posts: 823
edited November -1 in Working with GS (Mac)
how to make an enemy move alone? how I can add life to an actor?

Comments

  • PhoticsPhotics Member Posts: 4,172
    RUPAS said:
    how to make an enemy move alone? how I can add life to an actor?

    There's some good information in The Unofficial GameSalad Textbook about Artificial Intelligence.

    Basically... the "Move To" behaviors are very useful. You can use that to make an enemy actor chase a hero actor.

    With rules and timers, you can create conditions for your enemy actors... like chasing the hero when in range, or moving randomly around the area.

    It's a combination of lots of stuff.
  • 11clock11clock Member Posts: 450
    I've been told that Move To is buggy. Use Interpolate instead. And instead of Move, use the Change Attribute behavior to change linear velocity.
  • PhoticsPhotics Member Posts: 4,172
    11clock said:
    I've been told that Move To is buggy. Use Interpolate instead. And instead of Move, use the Change Attribute behavior to change linear velocity.

    I don't think Move To is buggy. It's working great for me. Interpolate is used for optimization, but I think that behavior can cause problems. I'm actually not as impressed with Interpolate as I used to be. Change linear Velocity is not good for chasing.

    An example... a homing missile... Change Linear velocity wouldn't work, that's not a persistent action. Move To is persistent!
  • 11clock11clock Member Posts: 450
    I see.
  • RUPASRUPAS Member Posts: 823
    Photics said:
    There's some good information in The Unofficial GameSalad Textbook about Artificial Intelligence.

    Basically... the "Move To" behaviors are very useful. You can use that to make an enemy actor chase a hero actor.

    With rules and timers, you can create conditions for your enemy actors... like chasing the hero when in range, or moving randomly around the area.

    It's a combination of lots of stuff.

    TRANSLATED INTO SPANISH IF YOU BUY 10:)
Sign In or Register to comment.