josex2r/jQuery-SlotMachine

Set Stop Position

Closed this issue · 3 comments

Marow commented

Can i set the Stop Position or something?

Its already choosed what a user get, i will only set the position of stopping...

+1 need this one too because the randomization is done on the server side.

Hello.
This can be done yet using the randomize function.
You can see an example in the source code of the example page (index.html#L255).

@Marow if you want to stop at designed position after spun try use changeSettings function . you can see inside the normal slotmachine.js there is a function inside it. (changeSettings not in the document)
Example:
`
$("machine1").slotMachine({active:0,delay:500,direction:"down"});

machine1.shuffle(9999999);

machine1.changeSettings({ randomize: function(){return 0;}})

machine1.stop();
`