![]() ![]() Int id, Int xPosition, Int yPosition, Table bodyDefĪdds a physic object into the game. Note: On the map editor, players can also add a lua="id" property in a joint definition in the XML code to be able to interact with it with LUA code. If none of these properties are defined, the joint won't be drawn. line (Int) color (Int) alpha (Float) foreground (Boolean) limit1 (Float), limit2 (Float), forceMotor (Float), speedMotor (Float): Prismatic and revolute joints' translation/rotation limits and motors. jointDef properties are::type (Int):::0: distance joint::1: prismatic joint::2: pulley joint::3: revolute joint:point1 (String "x,y"): location of the ground1 anchor (default: the ground1's center):point2 (String "x,y"): location of the ground2 anchor (default: the ground2's center), only used with distance and pulley joints:point3 (String "x,y"), point4 (String "x,y"): locations of the pulley's anchors, only used with pulley joints:frequency (Float):damping (Float): Distance joints' frequency and damping ratioĪxis (String "x,y") angle (Int): Prismatic joints' axis and angle. Int id, Int physicObject1, Int physicObject2, Table jointDefĪdds a joint between two physic objects. If targetPlayer is nil, it sends it to all players. (Target can be: #mobileId, $playerName, %playerName, ?backgroundLayerDepth, _groundLayerDepth, !foregroundLayerDepth ) Returns an image id. String imageName, String target, Int xPosition, Int yPosition, String targetPlayerĪdd an image to the map. Int xPosition, Int yPosition, Int timeInMillis These methods are defined by the Transformice API. This event triggers when a player click on a flash text event. Int textAreaId, String playerName, String callback This event triggers when a player starts an invocation. String playerName, Int objectType, Int xPosition, Int yPosition, Int angle This event triggers when a player has finished an invocation. ![]() String playerName, Int objectType, Int xPosition, Int yPosition, Int angle, Int xSpeed, Int ySpeed, Int objectType, Table other This event triggers when a player cancels an invocation. This event triggers when a player answer to a popup. Int popupId, String playerName, String answer This event triggers when a player wins the round. This event triggers when a player transforms into a vampire. This event triggers when a player respawn. String playerName, Int xPosition, Int yPosition This event triggers when a player leaves the room. This event triggers when a player gets the cheese. ![]() This event triggers when the data is loaded. This event triggers when a new player joins the room. This event triggers at the start of a new game. This event triggers when a player clicks the screen with their cursor. ![]() String playerName, Int xMousePosition, Int yMousePosition This event occurs every 500 miliseconds (0.5 seconds). This event triggers when a player presses a key. String playerName, Int ke圜ode, Boolean down, Int xPlayerPosition, Int yPlayerPosition This event triggers when a file is saved. This event triggers when a file is loaded. This event triggers when the player does an emote. This event triggers when the player types a message beginning with « ! » in the chat. These functions are called when the corresponding event is triggered. Note: The underlined functions can only be used by official Module programmers. Note: the print() function only displays to the person who runs the script. This documentation is valid as of Module API version 0.19. Unofficial documentation for the Module API - the system built into Transformice that allows minigames to run without a bot. Official Transformice documentation can be found here. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |