NikolaySuslov / aframe-croquet-component

A-Frame multi-user Croquet component
Other
12 stars 2 forks source link

Syncing of Methods? #2

Open carltesta opened 3 years ago

carltesta commented 3 years ago

Thanks for all your incredible work on this component. I have an entity with a sound component attached to it as well as the multiuser component. When I ran the method .playSound() on the entity's sound component I expected the .playSound() method to sync between instances of croquet but it didn't. What do I need to do to achieve the syncing of methods? Thank you!

<a-entity id="sound1" geometry="primitive: box" position="-5 1.6 -5" material="color: green" sound="src: #rad1" multiuser>
    </a-entity>

<script>
document.getElementById("sound1").components.sound.playSound();
</script>