[Feedback] Riley's Cum Roulette
Posted: Wed Feb 17, 2021 5:22 am
I like it, but I cannot stop the roulette. Maybe that is a bug?
... for the explorer at heart!
https://milovana.com/forum/
I didn't take a look at how you did it, but, off the top of my head, for a roulette like is described (changing until you click) I would recommend something like:HellaLittyBroPoggers wrote: Wed Feb 17, 2021 8:12 am If I made it too fast you couldn't click the button at all and If I made it too slow then it wouldn't be a roulette.
Code: Select all
var rouletteOptions = [
{title: 'Ruin', page: 'my-ruin-page'},
{title: 'Cum', page: 'my-cum-page'},
{title: 'Deny', page: 'my-deny-page'},
]
function randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min
}
function getRandom(opts, avoid) {
var result = opts[randomInt(0, opts.length-1)]
var i = 0
while (result === avoid && i < 100) {
result = opts[randomInt(0, opts.length-1)]
i ++
}
return result
}
var currentRoulette = getRandom(rouletteOptions)
var rouletteRunning = false
Code: Select all
if (currentRoulette) {
Notification.get('myRouletteNotificationId').remove()
pages.goto(currentRoulette.page)
}
rouletteRunning = false
Code: Select all
rouletteRunning = true
currentRoulette = getRandom(rouletteOptions, currentRoulette)
Notification.get('myRouletteNotificationId').setTitle(currentRoulette.title)
Code: Select all
pages.goto(pages.getCurrentPageId())Here, I spent a couple minutes stitching the roulette into your original tease to show you how:HellaLittyBroPoggers wrote: Thu Feb 18, 2021 4:57 am I don't know anything about coding at all so looking at this is very confusing