Interpolate through wall actor.
8bitninja
Member Posts: 367
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
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.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@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!
BRUNKT.com
Follow me at: Twitter - Instagram
Games and Templates
Appstore
@8bitninja - try this:
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Braydon_SFX cool, thanks, bud!
BRUNKT.com
Follow me at: Twitter - Instagram
Games and Templates
Appstore