# Event handler ending extension

**URL:** <https://forum.makecode.com/t/event-handler-ending-extension/24481>\
**Category:** Arcade\
**Tags:** game, extension\
**Created:** [November 23, 2023, 12:54am UTC](https://forum.makecode.com/t/event-handler-ending-extension/24481 "2023-11-23T00:54:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neintoes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neintoes/32/8315_2.png) [@neintoes](https://forum.makecode.com/u/neintoes)\
**Post date:** [November 23, 2023, 12:54am UTC](https://forum.makecode.com/t/event-handler-ending-extension/24481/1 "2023-11-23T00:54:46Z")

</div>

Hi All,

I was fiddling around with a game earlier where I wanted to turn off or change event handlers for sprites that were no longer aggressive so I made an ‘Event Handler Ender’ extension, there may well be functionality in the engine that already does this but I wasn’t able to find it so I cracked on (if anyone is aware of such functionality give me a shout!).

This extension contains blocks for killing the following event handlers:

- On sprite creation
- On sprite destruction
- On overlaps
- On tile overlap
- On hit wall

Extension can be found at: [https://github.com/neintoes/Event-Handler-Ender](https://github.com/neintoes/Event-Handler-Ender)

Example project (not featuring sprite creation and destruction handler enders) can be found here: [https://arcade.makecode.com/S45300-87898-30096-80381](https://arcade.makecode.com/S45300-87898-30096-80381)

All blocks will be found in the same sections as their original event handler counterparts.
