I have a game in which the player will go through three states, before the states are repeated. I have added a button so that the player can go back to the state before it. When I move from first state to the second state I can make changes but when I move to third state and then I want to go back to the second state it says "This move is not authorized now.". I have included the screenshots of my functions and states and actions to see where have I gone wrong also I am getting an error,
Which is:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. Which does not come in multiplayer. But still getting "This move is not authorized."
I have attached the Screen Shots which explains the situation.
The game is called Lakshya.
(anonymous function)
rejectPromise
play
doPlayFile — ly_studio.js:1:790140
doPlay — ly_studio.js:1:789824
playSound — ly_studio.js:1:388253
onNotificationPacketDispatched — ly_studio.js:1:539031
dispatchNotifications — ly_studio.js:1:477150
onNotification — ly_studio.js:1:473013
(anonymous function) — dojo.js:1:23213
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:34203
value — socket.io.js:6:33913
value — socket.io.js:6:33565
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:40457
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:28292
value — socket.io.js:6:40399
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:22295
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:8526
value — socket.io.js:6:8444
onPlayDisc — lakshya.js:379
Which is:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. Which does not come in multiplayer. But still getting "This move is not authorized."
I have attached the Screen Shots which explains the situation.
The game is called Lakshya.
(anonymous function)
rejectPromise
play
doPlayFile — ly_studio.js:1:790140
doPlay — ly_studio.js:1:789824
playSound — ly_studio.js:1:388253
onNotificationPacketDispatched — ly_studio.js:1:539031
dispatchNotifications — ly_studio.js:1:477150
onNotification — ly_studio.js:1:473013
(anonymous function) — dojo.js:1:23213
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:34203
value — socket.io.js:6:33913
value — socket.io.js:6:33565
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:40457
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:28292
value — socket.io.js:6:40399
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:22295
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:8526
value — socket.io.js:6:8444
onPlayDisc — lakshya.js:379