Changes

Jump to navigation Jump to search
→‎Basic format: add basic documentation for temporaryAnimatedSprite command
Line 223: Line 223:  
|-
 
|-
 
| <samp>addConversationTopic {{t|ID}} {{o|length}}</samp>
 
| <samp>addConversationTopic {{t|ID}} {{o|length}}</samp>
| Starts a [[Modding:Dialogue#Conversation topics|conversation topic]] with the given ID and day length (or 4 days if no length given).
+
| Starts a [[Modding:Dialogue#Conversation topics|conversation topic]] with the given ID and day length (or 4 days if no length given). Setting length as 0 will have the topic last only for the current day.
 
|-
 
|-
 
| <samp>addCookingRecipe {{t|recipe}}</samp>
 
| <samp>addCookingRecipe {{t|recipe}}</samp>
Line 441: Line 441:  
|-
 
|-
 
| <samp>ignoreEventTileOffset</samp>
 
| <samp>ignoreEventTileOffset</samp>
| Tile positions in farm events are offset to match the farmhouse position. If an event shouldn't be based on the farmhouse position, add an ignoreEventTileOffset command to disable the offset for that event.
+
| Tile positions in farm events are offset to match the farmhouse position. If an event shouldn't be based on the farmhouse position, add an ignoreEventTileOffset command to disable the offset for that event. This must be the 4th command (after the 3 initial setup ones) to take effect.
 
|-
 
|-
 
| <samp>itemAboveHead {{o|type}}</samp>
 
| <samp>itemAboveHead {{o|type}}</samp>
Line 534: Line 534:  
|-
 
|-
 
| <samp>showFrame farmer {{t|frame}} {{t|flip}}</samp>
 
| <samp>showFrame farmer {{t|frame}} {{t|flip}}</samp>
| Flip the farmer's current sprite along the Y axis. TODO: Behavior with farmer looks strange?
+
| Flip the farmer's current sprite along the Y axis. Farmer looks strange if not facing the correct direction prior to 1.6. Flip is a true/false value.
 
|-
 
|-
 
| <samp>showFrame {{t|actor}} {{t|frame ID}}</samp>
 
| <samp>showFrame {{t|actor}} {{t|frame ID}}</samp>
Line 598: Line 598:  
| <samp>temporarySprite {{t|x}} {{t|y}} {{t|row in texture}} {{t|animation length}} {{t|animation interval}} {{t|flipped}} {{t|layer depth}}</samp>
 
| <samp>temporarySprite {{t|x}} {{t|y}} {{t|row in texture}} {{t|animation length}} {{t|animation interval}} {{t|flipped}} {{t|layer depth}}</samp>
 
| Create a temporary sprite with the given parameters, from the resource <samp>TileSheets/animations</samp>.
 
| Create a temporary sprite with the given parameters, from the resource <samp>TileSheets/animations</samp>.
 +
|-
 +
| <samp>temporaryAnimatedSprite {{t|texturename}} {{t|source_x}} {{t|source_y}} {{t|source_width}} {{t|source_height}} {{t|interval}} {{t|length}} {{t|loops}} {{t|tile_x}} {{t|tile_y}} {{t|flicker}} {{t|flip}} {{t|depth}} {{t|fade}} {{t|scale}} {{t|scale_change}} {{t|rotation}} {{t|rotation_change}} +
 +
| Creates a temporary sprite with the given parameters. Can also accept the following optional, named parameters afterwards, in space-separated pairs. {{t|color}} {{t|hold_last_frame}} {{t|ping_pong}} {{t|motion}} {{t|acceleration}} {{t|acceleration_change}}
 
|-
 
|-
 
| <samp>textAboveHead {{t|actor}} \"{{t|text}}\"</samp>
 
| <samp>textAboveHead {{t|actor}} \"{{t|text}}\"</samp>

Navigation menu