Changes

Jump to navigation Jump to search
m
minor spelling
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 280: Line 280:  
|-
 
|-
 
| <samp>animate {{t|actor}} {{t|flip}} {{t|loop}} {{t|frame duration}} {{t|frames...}}</samp>
 
| <samp>animate {{t|actor}} {{t|flip}} {{t|loop}} {{t|frame duration}} {{t|frames...}}</samp>
| Animate a named actor, using one or more {{t|frames}} from their sprite sheet, for {{t|frame duration}} milliseconds per frame. {{t|frames}} are indexed numerically, based on 16x32 peices of the image. This index increases as you go from left to right, starting from 0. {{t|flip}} indicates whether to flip the sprites along the Y axis; {{t|loop}} indicates whether to repeat the animation until <samp>stopAnimation</samp> is used. If you're animating the farmer, it may be helpful to reference [[Modding:Farmer_sprite#Sprite_Index_Breakdown]]
+
| Animate a named actor, using one or more {{t|frames}} from their sprite sheet, for {{t|frame duration}} milliseconds per frame. {{t|frames}} are indexed numerically, based on 16x32 pieces of the image. This index increases as you go from left to right, starting from 0. {{t|flip}} indicates whether to flip the sprites along the Y axis; {{t|loop}} indicates whether to repeat the animation until <samp>stopAnimation</samp> is used. If you're animating the farmer, it may be helpful to reference [[Modding:Farmer_sprite#Sprite_Index_Breakdown]]
 
|-
 
|-
 
| <samp>attachCharacterToTempSprite {{t|actor}}</samp>
 
| <samp>attachCharacterToTempSprite {{t|actor}}</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>
5

edits

Navigation menu