vpinball / b2s-backglass

B2S Backglass Server for use with Visual Pinball
Other
39 stars 7 forks source link

Potential New Feature to B2S Snippet x/y translation #71

Open Scottacus64 opened 9 months ago

Scottacus64 commented 9 months ago

First off thanks for all of your work in maintaining and enhancing B2S!

I just got finished making a B2S for a new table that I've been working on with Bord and Roth called Nags (Williams 1960). It is a really cool wood rail horse racing game that features a backbox with six horses on a track that race during the five ball play. Moving those horse primitives in VPX is trivial because of the ability to transX and transY but in B2S I had to make arrays of snippets for each of the six horses.

If there was a way to move a single snippet it would have turned my array of 180 snippets (6 horses * 30 positions) into just six individual snippets. It also would make the B2S animate MUCH better than the jerky jumping from one snippet to the next. There are other tables that could utilize this like Roth's Jive time with an animated spinner.

I mentioned this to jsm174 and he said that one issue would be that B2S uses lots of scaling so absolute x/y values might not end up where you think they will. One work around would be to base the snippet x/y position as a percentage of the entire size of the B2S (or whatever is used to calculate the scaling).

At any rate I think this would be a really nice feature to add that could be used in multiple tables in addition to Nags. Untitled

JockeJarre commented 2 months ago

This is the test table and backglass which can be used to test POC

HorseTest (testTable 2023).zip