excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.81k stars 188 forks source link

Add option to ActionsComponent to cancel currently executing actions on collision #3088

Open eonarheim opened 5 months ago

eonarheim commented 5 months ago

Context

Currently actions will try very hard to complete their task and blast through colliders causing teleportation.

https://github.com/excaliburjs/Excalibur/assets/612071/db15f465-4c0f-4c10-a77a-7b68779dcfb5

image

Proposal

Come up with a new API (TBD) to cancel current or certain actions when specific collision criteria are met, this would greatly increase the utility of actions when using collisions.

github-actions[bot] commented 3 months ago

This issue hasn't had any recent activity lately and is being marked as stale automatically.