Programming Enemies
This #ScreenShotSaturday I am focusing on how to program enemies using the XAS script for RPG Maker VX Ace. XAS automatically sets a range variable when initializing (which can be adjusted in the hard script) that triggers every event's "Self Switch: D" within range of the character.
You should expect all events to react the same way as enemies, and a variety of events not related to enemies can be programmed with that in mind. Personal ideas include floor traps, check points, or specific boss actions that trigger by distance.
Edit the event's "Move Route" to program the enemy behavior.
Utilize the script: "touch_attack(x)" to toggle a basic attack which calls the appropriate graphic. In this case: Graphics/Characters/$E_Slime_Atk
Consider how the XAS script utilizes each graphic as they are the most intensive part of using the engine. Every action you create in game, you must have a graphic to match it with each direction you intend it to be used for instance $Hero_Swd:
Don't Forget to Subscribe to our YouTube for the Latest on Guelstie!
"twitter-tweet" wrote:Follow me on @GooglePlus T.co
— The Guelstie Project (@troctzul) November 20, 2015