No Edit Button:
I found the issue. Didn't think that I needed to insert my details cause I thought signing into Paypal would automate this. The mobile version of the shop states that the information needs to be filled, whereas the desktop version doesn't give a hint at all.
I wanted to purchase construct 3 but whenever I'm clicking the Paypal button the blank pop-up window that opens immediately closes itself.
The same issue on Chrome and Edge.
I found what my issue was. When I learned javascript using the rpg maker I used things like math.randomInt(n). But as it seems that was just a function and not part of the original javascript language. Now I created my own function and it works.
Thanks for the help.
Thank you for the reply. int(random(n)) gave me the same error that everything else that I tried did. That it is not defined.
I wrote this piece of script in the script.js file that is created inside the editor.
What am I doing wrong?
Develop games in your browser. Powerful, performant & highly capable.
How do I generate a random whole number via scripting?
I tried using math.randomInt(100), math.random(100) and more. But it keeps telling me that math or random is not defined. But isn't that defined in javascript?
Member since 26 Dec, 2019