Ok thanks. I’m still a bit lost on your question though. Are you asking how to implement the shuffle array algorithm? Or maybe how to animate the cards? What do you mean by “format this within a BJS file”?
I want to implement the algorithm and animate the cards so 2 cards can sync together.
The reason why I said “format” becuase I assumed in order to make it work their had to be a certain code with BJS framework to make this work…just couldn’t use the basic JS.
I’m not sure how to help with this one. The link you sent is already in JavaScript. You can use it directly, no?
If you start the animation of two cards at the same time, they should animate together. The PG you sent currently changes the rotation of the cards manually which works, but maybe you should use animations to do it.
I’m still not exactly sure what you mean by this. If you can ask specific questions like the two I tried to answer, it will be easier to help.