1. A method of providing a dynamic gaming environment, comprising: using one or more processors, executing a game engine module to provide an interactive game instance of a computer-implemented game; obtaining a state machine definition from a server computer system, wherein the state machine definition defines a plurality of states of a plurality of graphical objects in an interactive display for the game, and wherein the plurality of states are used to control characteristics of the respective objects of the plurality of graphical objects; instantiating a state machine instance from the state machine definition using a state machine module, wherein the state machine instance controls display of the plurality of graphical objects, wherein the state machine definition provides respective scripting functions to control the plurality of states of the plurality of graphical objects, and wherein the respective scripting functions receive one or more parameters, the one or more parameters being used to indicate one or more corresponding arguments that are unspecified at least in part until runtime; in response to determination by the state machine module of a first state of a particular graphical object, generating a display of the particular graphical object in the interactive display of the game; during execution of the game engine module, executing the respective scripting functions provided within the state machine definition using a scripting engine module, wherein execution of the respective scripting functions provide information to the game engine module indicative of one or both of a state of the particular graphical object or a state transition of the particular graphical object, and wherein execution of the respective scripting functions by the scripting engine module evaluates the information indicated by the one or more corresponding arguments; and in response to determination by the state machine module of a second state of the particular graphical object, controlling a display property of the particular graphical object within the interactive game instance via the state machine instance using at least a portion of the information obtained from execution of the respective scripting functions.