Interpolate through wall actor.

My actor does a dash attack move that using a interpolate behavior. The problem is when I use the dash attach too close to a wall, my actor dashes (interpolates) through the wall. My only solution so far is to have conditions in the dash behavior such as (if self position x is less than a position close to the wall then do not allow dash move) This method works but I was just wondering if someone might have a better solution. Thanks!

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Using interpolate causes the engine not to detect collisions. If you're looking for that smooth movement that interpolate provides, you could look into using motion linear velocity instead.

  • 8bitninja8bitninja Member Posts: 367
    edited March 2015

    @Braydon_SFX Right now I have (If dash is true interpolate self position x to self position x +45 in 0.1sec) Could you explain how to set that up using motion linear velocity instead. Thanks!

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @8bitninja - try this:

  • 8bitninja8bitninja Member Posts: 367

    @Braydon_SFX cool, thanks, bud!

Sign In or Register to comment.