Discord
Login
Community
DARK THEME

weird error

Warning: screen.clear() is not a function, in file "main" at line 19, column 16
Warning: screen.drawSprite("icon", 0, 0, 20, 20) is not a function, in file "player" at line 2, column 50

like this are basci functions... its microscript 2.0 language

I think its an error with the way that microstudio connects in a project differents files. It happens to me too.

But what language do you use, Js?

Im just jusing microscript 2.0, i dont know what coused the error... :(

So it must be the that microstudio connect between files.

I will try to replicate the error. See you son, and thanks for responding!

Some other question:

Do you are using a library/plugin?

That seems reeealy strange, and oddly specific, mind pasting the whole code?

@challcrot im not jusing any library's

The whole code is just the default script so init = function etc... with in the draw function screen.clear and screen.drawSprite("icon", 0, 0, 20, 20)

Ok, I think I narrowed it down to a few things.


  1. You are accidently using a different scripting language (eg. JavaScript or Lua)

  2. A weird Internal Miro Studio Initialization error. It seems you aren't too deep into this project, so maybe, delete it, and.... try again?

Keep me Posted, I'm a lil curious now

We should report to gilles this strange bug.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community