X

Glossary

List of terminology used in GameSalad, including behaviors & functions, and what they mean:

  1. Accelerometer: Determines the angle and rate of movement of the device; useful for determining when a user rotates or tilts their device.
  2. Accelerate (Behavior): Specifies the speed and direction of acceleration for an actor. Actors will continue to accelerate unless drag is applied or another movement behavior takes precedence.
  3. Accelerate Toward (Behavior): Allows user to specify the precise location an actor will accelerate toward.
  4. Action Behavior: These are behaviors that are not meant to fire continuously, such as changing image, color, or size, or accepting keyboard input; they are best used inside a rule.
  5. Actor: All the items (both visible and invisible) in your game are actors; they are governed by Behaviors that control how they interact with both other actors as well as with people playing your game.
  6. Actor Tag: Actor Tags are used to categorize actors; they can be added and removed through the actor attributes tab in the inspector.
  7. Alpha Color: Alpha controls the transparency of an actor, and can be set to any real number between 0 and 1, with 0 being completely transparent and 1 being completely opaque.
  8. Animate (Behavior): Displays a series of images in rapid succession to create animation.
  9. Attribute: Attributes contain numeric or text values that govern various aspects of the game, scene, and actors.
  10. Behavior Library: A list of all available behaviors which can be assigned to actors.
  11. Behaviors: Behaviors are actions or states of being that apply to actors; they can change how actors move, look, sound, and act.
  12. Camera Mode: An alternative mode while editing a scene, Camera mode allows the user to set the sensitivity and range of the camera's movement.
  13. Change Attribute (Behavior): Allows user to set or change a game, scene, or actor attribute. For instance, users can create score-keeping systems, instructing the game to add points (or remove points) to a specific actor, or remove health/life from a player or actor.
  14. Change Image (Behavior): Change an actor's image to a new image - useful for showing damage or other changes to an actor without having to create multiple actors.
  15. Change Scene (Behavior): Goes to a specific scene - useful for moving to the next level, a credits scene, or the game menu.
  16. Change Size (Behavior): Grows or shrinks an actor (use a negative number to shrink). Insert a timer container to control how long the growth or shrink should take.
  17. Change Velocity (Behavior): Specify movement changes relative to another actor or to the scene.
  18. Collide (Behavior): Use this behavior in conjunction with a tag to control which actor or groups of actors the primary actor will bounce against.
  19. Collision Shape: This option determines whether other objects will collide with this object as if it were round (or rounded), or square (or rectangular).
  20. Constrain Attribute (Behavior): Continuously updates an attribute - for instance,constraining the actor's location to that of the mouse. Essentially ties two attributes together.
  21. Control Camera (Behavior): Allows users to cause the camera to follow an actor - keeping it in view.
  22. Density: Density refers to the heaviness of the actor. A higher value will make the object harder to move by less dense actors. A value of 0 will make an object immovable but still affect other actors in the scene. Density can be set to any real positive number. (i.e.Density >= 0)
  23. Destroy (Behavior): Removes the ACTOR from the scene - apply this rule to objects that can be destroyed, like the blocks in Breakout or the bricks in Mario. Best used with a rule - for instance, contact with the ball in Breakout.
  24. Display Text (Behavior): Allows users to change the color, size, font, and other elements of text displayed in-game. Change "alpha" to 0 (found under color in the attributes list) to make all parts of the actor invisible other than the text.
  25. Edit Mode: This is the default mode for the scene editor, and allows the actors to be placed, moved, rotated, and resized in the scene.
  26. Editor: Can refer to one of two editors: the Scene Editor or the Actor Editor. There are two primary editors in GameSalad Creator. The Scene Editor is used for creating your scenes by placing actors, changing various attributes, setting tags, and more. The Actor Editor is used for changing a variety of attributes about your actors and assigning them behaviors.
  27. Fixed Rotation: Selecting this option will prevent the object from rotating when it collides with other actors in the scene. Leaving this box unchecked means that the actor will rotate normally when it collides with other actors.
  28. Friction: Increasing this number will slow this object down more when it interacts with other objects. Set to 0 for no friction (and hence no slowing).
  29. Gravity: Each scene can be set up with an X and Y gravity attribute.These are real numbers that affect all actors which are Movable.
  30. Group (Behavior): Creates a group container that holds a set of rules or behaviors.
  31. Image Library: A repository of .png assets that have been imported into the GameSalad Creator.
  32. Instance (actor): An instance is a unique example of an actor, with altered behaviors, attributes, or abilities from the prototype actor.
  33. Interpolate (Behavior): Allows you to cause an attribute (location, value) to go from A to B in a set amount of time - for instance, from 100 to 1 (a countdown) or from position X to position Y (for pre-programmed movement). Note: Interpolating an Actor's size does NOT change the size of its collision box to match.
  34. iOS: The operating system created by Apple, Inc. to run on the iPhone, iPad, and iPod Touch.
  35. Layers: Layers allow you to prevent actors from interacting with each other - this can allow you to create backgrounds, scores, and more without having the player's actors bump into them.
  36. Load Attribute (Behavior): Loads the value stored by a custom key name from persistent storage. Allows users to change an attribute upon specific input or events.
  37. Logic: A term which refers to the combination of rules and behaviors that jointly define how a project operates.
  38. Max Speed: This attribute controls the maximum speed an actor can reach through acceleration and gravity. Please note that some behaviors, such as Change Velocity and Interpolate, will override Max Speed.
  39. Movable: Allows you to specify that an actors is able to move (or not able to move) when interacting with other actors. (Check the box to allow it to move)
  40. Move (Behavior): Specifies movement in a particular direction relative to the actor or scene. Movement is perpetual unless stopped by some other rule or object.
  41. Move To (Behavior): Specify movement towards a particular X&Y coordinate; upon arrival the actor stops moving, or resumes any prior movement that the Move To behavior overrode.
  42. Note (Behavior): Allows users to write a note to self or other creators about a particular behavior, rule, actor, or group - useful or explaining why something is done a particular way.
  43. Open URL (Behavior): Only available to individuals with a Professional-level membership, this option allows the developer to specify a specific URL to open when a certain action takes place (we recommend a button being clicked or pressed). The URL will open in the user's default browser.
  44. Orientation: This determines whether your game runs in "up and down" mode (portrait) or "side to side" mode (landscape) on iDevices (iPhone, iTouch, iPad).
  45. Otherwise: An optional component of a rule; behaviors placed under this heading will trigger whenever the conditions of the Rule are not valid.
  46. Particles: Particles are small objects that move out from the actor in a defined way. See "Particles (Behavior)" for more information.
  47. Particles (Behavior): Create an explosion! Radial or fountain of particles - can also set an image, color, lifetime, and other parameters.
  48. Pause Music (Behavior): Pauses a currently playing music file upon a particular event.
  49. Platform: The devices or locations where your game will be able to run. Platforms that are currently available include iOS, Mac Desktop, Android, and HTML5.
  50. Play Music (Behavior): Triggers a music file to play - can play once or loop.
  51. Play Sound (Behavior): Triggers a sound file to play - can play once or loop
  52. Preview: Allows you to see how your game will look and run instantly! Can be done both in GameSalad and in a browser window. Use often to ensure that the rules and actions you are giving your actors are working properly.
  53. Prototype (Actor): A prototype actor is an actor that possesses all the overall governing behaviors, but does not possess some of the specifics that an Instance Actor possess (such as spawning location).
  54. Publish: Publishing uploads your game to GameSalad's servers, where it is turned into a binary that you can then submit directly to Apple, GameSalad Arcade, or an Android store.
  55. Replicate (Behavior): Creates copies of an actor based on an attribute or integer. Useful for displaying the number of lives a player has left, having an item duplicate itself, and much more.
  56. Reset Game (Behavior): Resets the game and all scenes (best used with a rule to specify WHEN or HOW this happens)
  57. Reset Scene (Behavior): Resets the current scene and all actors in it (best used with a rule to specify WHEN or HOW this happens)
  58. Bounciness: Makes your actor bouncy - 0 is no bounciness; 2 is superball bouncy. Any real positive number from 0 to 2 can be used.
  59. Rotate (Behavior): Alone, this causes consistent clockwise or counter-clockwise rotation. Can also cause an item to only rotate when an event happens, such as pressing a keyboard key or collision with another actor.
  60. Rotate to Angle (Behavior): Causes rotation to an angle relative to another actor or to a scene.
  61. Rotate to Position (Behavior): Causes rotation to a specific XY coordinate on the screen or relative to actor
  62. Rule: Rules create a condition or set of conditions that, when met, cause actors to act in specific ways.
  63. Rule (Behavior): Creates a condition or set of conditions to check for player input or an attribute change.
  64. Save Attribute (Behavior): Save a particular value into persistent storage with a custom name. Allows users to save games (see "Load Attribute" for information on loading saved information)
  65. Scene Attributes: These are attributes that specifically affect a scene, rather than an actor or the entire game. They include Name, Time, Size, Wrap X, Wrap Y, Gravity, Color, Camera, and Autorotate.
  66. Spawn Actor (Behavior): Creates a new actor instance in the scene - useful for projectiles, dropping items, etc.
  67. Stop Music (Behavior): Causes a music file to stop playing.
  68. Timer (Behavior): Timer allows you to perform behaviors or rules at specified intervals. These intervals are defined as after a certain number of seconds, every couple of seconds, or for a certain number of seconds.
  69. Keyboard Input: Saves keyboard input text into a specified attribute.
  70. Pause Game (Behavior): This behavior will pause the scene by freezing all activity in a given scene and opening another scene that you specify. Use this to open up in-game menus or simply pause the action. Use “unpause” to resume the scene.
  71. Unpause Game (Behavior): This behavior removes the pause screen and resumes the paused scene.
  72. Log Debugging Statement (Behavior): Logs a statement in the debugging window. Statements can be attribute values for error-checking or text entry to flag an event when your game is running for testing purposes.

Functions

  1. Function: Functions are various mathematical formulas available through the expression editor that allow you to have the Creator calculate sines, cosines, logs, and much more.
  2. abs (Function): provides the "absolute value" of a number. In other words, it will make a negative number into a positive number.For example, abs(-5.23)=5.23.
  3. acos (Function): This is the trigonometric arccosine (inverse cosine) function. Values for x should range from -1 to 1, with results from 180 to 0, respectively. Any other input values will result in 'nan'.
  4. asin (Function): This is the trigonometric arcsine (inverse sine) function. Values for x should range from -1 to 1 with results from -90 to 90, respectively. Any other input values will result in 'nan'.
  5. atan (Function): This is the trigonometric arctangent (inverse tangent) function. Results will range from -90 to 90.
  6. ceil (Function): The integer when you round up a value.For instance, ceil(0.3095)=1, ceil(9.2850)=10, and ceil(-3.5)= -3.
  7. cos (Function): This is the trigonometric cosine function. cos(0)=1.For more information on sine and cosine, see http://en.wikipedia.org/wiki/Trigonometric_functions
  8. exp (Function): The exponential function e^x, where e is approximately 2.71828182818.For more information, see http://en.wikipedia.org/wiki/Exponential_function
  9. floor (Function): The integer when you round down a value. For instance, floor(1.5)= 1, floor(9.2850)= 9, and floor(-3.5)= -4.
  10. In (Function): The natural logarithm of a value. The natural logarithm is the logarithm to the base e, where e is approximately 2.71828182818. For more information, see http://en.wikipedia.org/wiki/Natural_logarithm
  11. log10 (Function): The base 10 logarithm of a value. For instance, log10(10)=1, log10(100)=2. For more information, see http://en.wikipedia.org/wiki/Logarithm
  12. magnitude (Function): Finds the length of a line segment drawn directly from the origin 0,0 to the given point. You can also include an offset to find the length between two points - for example, magnitude(x-x',y-y'). If you have one actor at 100, 240 and another at 25, 30, you can find the distance between them with magnitude(25-100,30-240).
  13. max (Function): Returns the higher value of the two numbers or variable units. This can be very useful for determining if a new score is higher than an existing score, or for other similar comparisons. For example, max(12,35)=35.
  14. min (Function): Returns the smaller value of the two numbers or variable units. For example, min(12,35)=12.
  15. padInt (Function): Displays an integer with the specified number of digits. For instance, padInt(32,5) will display 00032. However, padInt(38025,2) will display 38025. It will always display at least the minimum number of digits needed to retain the value of x.
  16. padReal (Function): Displays a floating point with padding and precision. For instance, padReal(9.1234,15,6) will display 9.1234 with at least 15 total digits (including the decimal) and at most 6 digits to the right of the decimal. - 00000009.123400.
  17. pow (Function): Returns the value of x to the power of y. For example, pow(2,3)=222=8.
  18. precision (Function): Displays a floating point number with the specified number of decimal places. For instance,prec(1234.234,2) will display 1234.23.
  19. random (Function): Returns a random integer equal to or between the first integer and the second. For instance, random(1,5) could return any of the following values: 1,2,3,4,5.
  20. sin (Function): The trigonometric sine function. This is similar to the cosine function, but is offset by one quarter of a wave cycle. For more information, see http://en.wikipedia.org/wiki/Trigonometric_functions Tip: if you use the sine function and start your incrementing variable at 0, your actor's movement does not start at the middle point between the minimum and maximum points of the wave.
  21. sqrt (Function): Provides the square root of a value. Input values less than 0 will result in 'nan'.
  22. tableCellValue (Function): Returns the value of a cell of a selected table at a certain row and column. Tables are numbered starting at 1. You can also use the row or column name as an input for this function. For example, tableCellValue(game.Data,1,15) will return the value in table, Data, at row 1 and column 15.
  23. tableColCount (Function): Returns the number of columns in the selected table.
  24. tableColNumber (Function): This will return the column number with the given column label.
  25. tableColSum (Function): Returns the sum of the table cells in a given column between the starting row and ending row. This only works on numerical type columns (integer, real, angle).
  26. tableMergeValues (Function) - This will return a string value with the concatenated values from a given column or row (depending on the setting in the 2rd parameter). If the start range is greater than end range, then it will go from last value to first value, appending to the end. The separator will be concatenated between each value.
  27. tableRowCount (Function): Returns the number of rows in the selected table.
  28. tableRowNumber (Function): This will return the row number with the given row label. It will return 0 if it doesn’t exist. This is useful if you want to jump to a section of a table and start iterating through rows from there.
  29. tableSearch (Function): Searches a given column or row (depending on the setting in the 3rd parameter), and returns the index for the first instance of the given key (or keyword) where a match is found (also depending on the match type as set in the 7th parameter). It will search between the specified range. If the start range is greater than the end range, it will do a reverse search. A “0” will be returned if the key value is not found. If you specify “not” in front of the last parameter, it will check against the opposite search. For example, tableSearch(game.table,”yes”,”row”,1,1,10,”exact”); will look for the first instance of “yes” in a cell value in row 1 between columns 1 and 10, and return the column value. While tableSearch(game.table,”yes”,”row”,1,1,10,”notexact”) will return the column number where the cell value is not exactly “yes”.
  30. tan (Function): The trigonometric tangent function. For more information, check outhttp://en.wikipedia.org/wiki/Trigonometric_functions
  31. textFind (Function): Returns the index of the location of the text, pattern, in the text attribute, text, starting the index startIndex. If the text was not found, it returns "-1". CASE SENSITIVE Usage: Given a text attribute with the value "the quick sly fox jumped over the lazy dog." textFind(self.Text,"the",1) returns the value 1. However, textFind(self.Text,"the",2) returns the value 31.
  32. textLength (Function): This returns the length of the text or numerical attribute
  33. textRepeat (Function): Returns a text which repeat the text attribute, text, n times, where n is a non-negative integer value. Usage: Given a text attribute with the value "yo", textRepeat(self.Text,2) returns the value "yoyo". You can also enter the text directly into the function and use an expression for the n value. For example: textRepeat("buffalo",mod(self.Time,3)) will return either "buffalo" or "buffalo buffalo" depending on the time.
  34. textReplace (Function): This will return the text or text attribute, text, with the first instance of text value, pattern, with text value, replacement. Usage: Given you have a list of separated values in a text attribute like, “s01s02s03s04s05s”, you can replace “s02s” with “s” to signify that question 2 has already been used. See the textSubStr for more usage.
  35. textReplaceAll (Function): This works just like the textReplace function but will return a text value with ALL instances replaced.
  36. textSubStr (Function): This returns a text which is the substring of attribute, text, starting from index startIndex and ending at index endIndex. Usage: Given a text attribute with the value “the quick sly fox jumped over the lazy dog.” textSubStr(self.Text ,5,8) returns the value “quic”. You can also use this to extract a random set of numbers from a string and use that as a way to choose a unique question via table row number.
  37. vectorToAngle (Function): Finds the angle relative to the origin 0,0, given an X and Y coordinate. For instance, vectorToAngle(100,200)=63.435. You can also find the angle relative to an offset. For instance, vectorToAngle(x-x',y-y'). VectorToAngle(100-200,150-250) will find the angle between the points 100,150 and 200,250, or -135 degrees.
  38. round (Function): The integer when you round to the nearest. If exactly 0.5 between two integers, the result is the greater. For instance, round(1.5)= 2, round(9.2850)= 9, and round(3.7)= 4.
  39. roundTo (Function): Round a real number to a specific decimal digit. Unlike the precision function, the return value is still a number, not text. To pad the decimal with 0's for display purposes, use the precision function instead. Examples: roundTo(0.12345, 3) = 0.123; roundTo(2.5, 0) = 3; roundTo(4, 2) = 4;