How to translate microstudio code to Javascript
Alright so I messed up halfway through my game and realized that microstudio code is not good at running distance codes or any code needed for my game and would there be a way to fix it so that I can change my game from microstudio code to Javascript?
You don't have to change all your code.
All you need to do is rewrite critical sections of the code that run inefficiently in MicroScript
into JavaScript
.
To do this, create a new source.
Add the first line text with the content
// javascript
write JavaScript code in this file.
Translation is easy - just add {
to functions and loops and classes and remove the word "end"
.
However, there is one problem with writing code in JavaScript - MicroStudio does not show errors with fragments of code written in JavaScript.
To counteract this, install the library from this link >>
and add
catchConsole()