Jump to content

Search the Community

Showing results for tags 'play animation button'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. I received a model of a tractor / crane arm. It is boned and animated. I exported this crane arm out of 3DS Max as a glTF. When I import it into BabylonJS, the animation begins playing immediately. I would like import the crane arm and not have the animation play immediately. I have a "Play" button and I'd like the animation to start from frame 0 when clicked. I'd like the animation to stop and return back to frame 0 when the button is clicked again. Is creating a Play / Stop animation button fairly basic (loader.beginAnimation())? Do I have to work with skeletons? Below is my code: var loader = BABYLON.SceneLoader.ImportMesh("", "models/", "CraneArm.gltf", scene, function (newMeshes) { }); document.getElementById("AddOars").addEventListener("click",function () { });
×
×
  • Create New...