Because, frankly, "pure" JS scares me.
If so, can you give me few pointers?
If so, can you give me few pointers?
if Actor.hp<30 {
Actro.hp=30; //keeps actor health at 30 hp minimum
}
Michael Ahlers said:
Not sure what you mean by the compiler/engine doesn't complain, because you would get an error that 'Actro' is not defined.
const Actor = {};
Actor.hp = 29;
if (Actor.hp < 30) {
Actro.hp=30; //keeps actor health at 30 hp minimum
}
Perhaps he did derail it, or perhaps he was just responding to your previous statements that JS "sucks big time" and "JS scares me" by trying to give you help/resources so that it would scare you less. Either way, doesn't really matter.
"Microsoft developed typescript, it was made to have first class citizen support in Visual Studio including Intelligence and on-the-fly compiler errors."Rave said:
"TypeScript is just a complete superset of JavaScript. All JavaScript code is totally valid TypeScript code."Rave said:
Original thread: https://forums.rpgmakerweb.com/threads/anyone-had-any-luck-with-using-typescript-compiles-to-js-to-develop-plugins.92723/