01-28-2003, 04:46 AM
Suppose I have a map arranged like so where 1 square is one screen and the star is the player, where if he passes the screen the other map loads:
|------|------|
*
|------|------|
This is a non-scrollable map. If it were scrollable, I understand how to use the screen buffer now. So I would have the left map in memory, then when the player passes the screen boundary, I would clear my map array, reallocate the array to use the second map, then draw the map blah blah blah. Would I have to use $dynamic to reallocate my array which the reallocation would reside in a subroutine? I hear it gets tricky using $dynamic variables. Is there a good tutorial out there which explains proper usage of dynamic array allocation?
|------|------|
*
|------|------|
This is a non-scrollable map. If it were scrollable, I understand how to use the screen buffer now. So I would have the left map in memory, then when the player passes the screen boundary, I would clear my map array, reallocate the array to use the second map, then draw the map blah blah blah. Would I have to use $dynamic to reallocate my array which the reallocation would reside in a subroutine? I hear it gets tricky using $dynamic variables. Is there a good tutorial out there which explains proper usage of dynamic array allocation?
strosmash :
www.geocities.com/juice801980/astro.zip
T.A.N.K :
www.geocities.com/juice801980/tank.zip
(right click, save-as...)
www.geocities.com/juice801980/astro.zip
T.A.N.K :
www.geocities.com/juice801980/tank.zip
(right click, save-as...)