Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Description: This is a CopperCube behavior which makes an object jump (with the ability to double jump) when space is pressed. Note that this behavior doesn't include movement scripts like moving with W, A, S, and D. Be sure to set jump speed to 0 for the scene node you're attaching this behavior to. The collision is checked by drawing a line from the scene node to an offset Y position below the scene node. The Y offset is the length of the line. The line extrudes to below the camera. Be sure not to input negative values as it will cause the line to extrude upwards instead, causing unwanted affects. This behavior only works with physics simulation enabled, which only the Windows and Mac targets support. Behavior properties: "SceneNodeName" = The scene node that this behavior is attached to. CopperCube variables that this script checks for (be sure to set these at scene startup): "DisableJump" = if it equals 1, the entire script will disable jumping completely. Useful if you dont want to allow the player to jump during cutscenes and such Download: http://www.mediafire.com/file/50... |
||||
|
Very cool, thanks for sharing! Would you want me to put it onto the official download page for behaviors? |
||||
|
wrote: Very cool, thanks for sharing! Would you want me to put it onto the official download page for behaviors? Sure! |
||||
|
hey that is some great work if i do say so myself! you made it to the coppercube hall of fame! |
|