HELP! Interpolate collide

MeinMilchKaffeeMeinMilchKaffee Member, PRO Posts: 114
edited November -1 in Working with GS (Mac)
I have a enemy that use interpolate to go right or left.
But it does not collide with the ground.
What can I do ?

Comments

  • mm34125mm34125 Member Posts: 35
    Add a "collide" behaviour to the enemy. this will tell the actor to collide with the ground.
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    No, that will not work @mm34125, Interpolate cancels out any collides.

    Ace
  • mm34125mm34125 Member Posts: 35
    Oops, thanks for the advice, mynameisace! Then I would say MeinMilchKaffee should use a different kind of movement control for the actor. Is there a special reason for using interpolate?
  • MeinMilchKaffeeMeinMilchKaffee Member, PRO Posts: 114
    yes speeed :D
    I mean I have many enemies in my game and it should run good..
    Any suggestions
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    If you want to collide and reference that actor more, use change attribute self.linear velcoity x to 100 (or whatever number)

    That isn't heavy on processing power.

    Ace
  • MeinMilchKaffeeMeinMilchKaffee Member, PRO Posts: 114
    Thank you..:D
    I will try this:)
  • mm34125mm34125 Member Posts: 35
    Mhm, also you should take a look at the demos. Many of them do not use any timers and are optimized for performance. Download some of them and see what the behaviours do. That has helped me a lot! If you need further help, please post more details about your game.
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    Due, There is a Solution for this.

    I have a game with a LOT of actors, All off them are not Movable, and I move them With interpolate.

    And For Collision to work with My main character, my main character is Movable (The Only One).

    So 1 Movable actor will collide with a non movable actor.

    So Maybe you can make one of them movable.

    Cheers.

    _____________________________________________________
    image
    imageimageimageimage
Sign In or Register to comment.