Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes

 
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
 



 
Reply
Posted 2004-08-30, 03:34 PM in reply to Lenny's post "Male and Female characters long-winded..."
You can stick the Teleport command outside the branches, but that's really all I can think of, without using COMMON EVENTS (dramatic music)

The Common Events would be called directly, after setting a teleport location. Here's how it would look:


------Map Event - Teleport into town-------

<>Erase Screen
<>Teleport (wherever)
<>Call Event - MakeCharacterOnMapBigger
<>

------Map Event - Teleport out of town-------


<>Erase Screen
<>Teleport (wherever)
<>Call Event - MakeCharacterOnMapSmaller
<>


------------

Obviously, the common events would be the part with all of the branches and such - but it's handled outside of all your teleport events. I don't have RPG Maker installed at the moment (Windows directory decided to kill itself after a power outage, so I had to reinstall) or I would do a screenshot of the process.

Basically, the screen would go dark, you go to your location, your character will change, and the screen is revealed. Nothing too complicated.

Edit: Don't forget to put the <>Show Screen event command as the last command in your common events.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2004-08-31, 01:29 AM in reply to BlueCube's post starting "You can stick the Teleport command..."
I getcha. OK. Thnx.

Last edited by Lenny; 2004-08-31 at 06:43 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
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:37 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.