# Switching between characters

**URL:** <https://forum.kirupa.com/t/switching-between-characters/331715>\
**Category:** flash\
**Created:** [October 3, 2013, 12:40am UTC](https://forum.kirupa.com/t/switching-between-characters/331715 "2013-10-03T00:40:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jarek86](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jarek86](https://forum.kirupa.com/u/Jarek86)\
**Post date:** [October 3, 2013, 12:40am UTC](https://forum.kirupa.com/t/switching-between-characters/331715/1 "2013-10-03T00:40:02Z")

</div>

Hey there, I’m trying to create a Mario game where the player plays as both Mario Bros. I want to setup a button that will change control from one brother to the other and vice versa. I also want the un-used brother to follow the player with a 3 second delay. Kind of set it up like Sonic the Hedgehog 2 where Tails will follow the player around, except in this game you can play as both characters. How would I set this up and what code would I use??

THANKS!
