View Single Post
 
Male and Female characters long-winded teleporting codes. Any way to cut them down?
Reply
Posted 2004-08-30, 05:52 AM
At the start of my game I have the option to change the main character from male to female, depending on your preference. Each gender has 4 different sprites. These 8 sprites are copied and made smaller for use on the World Map. This means though, that my code when teleporting to different places from the world map is extremely long-winded, using 8 different branches with 8 different switches:

<>Branch if Switch [0001:Azrael Male 1] is ON
<>Change Sprite Association: Azrael Hero 1-1
<>Teleport: 0003:Forest(0003,098), Retain Facing
<>
: Else Handler
<>Branch if Switch [0002:Azrael Male 1] is ON
<>Change Sprite Association: Azrael Hero 1-3
<>Teleport: 0003:Forest(0003,098), Retain Facing
<>
: Else Handler

...and so on.

Is there any way to cut this down, without actually creating 8 different characters for just the one main character???

Last edited by Lenny; 2004-08-31 at 06:42 AM.
Old
Profile PM WWW Search
Lenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basics
 
 
Lenny