![]() |
Male and Female characters long-winded teleporting codes. Any way to cut them down?
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??? |
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. |
I getcha. OK. Thnx.
|
All times are GMT -6. The time now is 11:03 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.