# Making code for several levels in a game

**URL:** <https://forum.kirupa.com/t/making-code-for-several-levels-in-a-game/256224>\
**Category:** programming\
**Created:** [April 1, 2008, 1:29am UTC](https://forum.kirupa.com/t/making-code-for-several-levels-in-a-game/256224 "2008-04-01T01:29:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejoeknows\_com](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@thejoeknows\_com](https://forum.kirupa.com/u/thejoeknows_com)\
**Post date:** [April 1, 2008, 1:29am UTC](https://forum.kirupa.com/t/making-code-for-several-levels-in-a-game/256224/1 "2008-04-01T01:29:48Z")

</div>

im making an adventure game and want the player to be sent to level 2, should i copy all the code i want from the first frame into the second frame (will this take to much memory) or could i call upon the major functions from the level in the first frame with its code?

thanks  
-joey
