# New scene screws up mc codes

**URL:** <https://forum.kirupa.com/t/new-scene-screws-up-mc-codes/320926>\
**Category:** Uncategorized\
**Created:** [April 5, 2011, 7:43pm UTC](https://forum.kirupa.com/t/new-scene-screws-up-mc-codes/320926 "2011-04-05T19:43:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trehn](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@trehn](https://forum.kirupa.com/u/trehn)\
**Post date:** [April 5, 2011, 7:43pm UTC](https://forum.kirupa.com/t/new-scene-screws-up-mc-codes/320926/1 "2011-04-05T19:43:53Z")

</div>

Hi.  
I’m having some trouble with scenes and mc codes. I’m learning how to make games in AS 2.0 and I have made a character\_mc with alot of different hitTest and movement codes. At first all codes works fine, but when I decide to create a new scene my character\_mc codes goes crazy. The character runs when it’s supposed jump and acts all messed up. Does anybody know why my character\_mc goes crazy when I add a new scene???

All codes is inside the character\_mc. I have used onClipEvent (load) for different variables and onClipEvent (enterFrame) for all movement, animation and collision codes. Are these codes the problem or is it something else? I very new at this and I really can’t figure this out. Any help would be appreciated!!
