| rpgSprite editing |
What is an rpgSprite?
This sprite is used for people and objects in RPG's. It can look like anything, and it can run scripts when certain conditions occur. It single-handedly makes the game an RPG. (Except, you know... without a battle system) | Normally, all rpgSprite's have collision. To disable a sprite's collision and allow the player to walk through it, you set its noCollide variable to equal true, by using a setVariable command in the script editor. Here's how you turn on noCollide
Edit Modes
| There are two things you can edit. The appearance of this sprite, and its behavior. |
Appearance
| When you first create an rpgSprite, you'll immediately be able to change what it looks like. At the top, you'll select a sprite sheet, and on the right, you'll adjust the settings that tell it how many directions and animation frames there are. The sprite's image on the map will update in real-time to show you what it looks like. | If the interface is too cluttered for you, click on the "See More" button. This will hide the folder and thumbnail browsers. The folder browser on the left allows you to easily navigate into and out of folders by double-clicking on them. Next to it is the thumbnail browser, which allows you to preview all the sprite sheets in the current folder. Clicking a thumbnail will load its file.
About Scripting
| When you select an existing rpgSprite, it'll display the script editor. A script is a list of things to do. In the list, you'll see 3 triggers. These are reactions that contain things for this sprite to do. First, you open one of the triggers, such as talk, then you click the <> inside of it, which will make a bunch of buttons appear on the left. Each of those buttons is something you can make the sprite do. About script commands. |
auto
This script will immediately run when the sprite appears, usually when the player enters the map. If this sprite has a flag condition, this script will run when the sprite appears. This script does not pause the player, so you could have this sprite doing something while the player is walking around.
talk
This script runs when the player talks to this sprite. The player will remain paused until the script is done. This script is also used to make objects react, such as switches.
collision
This script runs when the player bumps into this sprite. This is often used to send the player to another map, such as when they enter a doorway or walk to the edge of a map. You'd simply put an invisible sprite there with a collision script, containing a teleport command. If this sprite's noCollide setting is on, the player will need to walk on top of this sprite to trigger a collision reaction. So this trigger can also be used for thinigs like floor switches too. Here's how you turn on noCollide
| Last updated: December 27, 2014 |