Discord
Login
Community
DARK THEME

BitmapText PIXI

Create a new project. Select PIXI graphics library. Copy this code into your project.

init = function()
  bitmapFont = new PIXI.BitmapText("Hello-World", 
    object 
      fontFamily = "Arial" 
    end)
  print( "PASS")

end

update = function()
  print(" UPDATE ")
end

draw = function()
end

What's wrong? When you run the program!!!

Attempting to create an object from the PIXI.BitmapText class results in:

  • that the program stops working
  • that an error appears in the browser console with the following text: 'Uncaught Error: Missing BitmapFont "undefined" "
  • that MicroSudio IDE stops working properly, I enter text in the MicroStudio console, e.g. system, and receive the message "[object Object]"

I also tried to export the project from the local computer running node.js + MicroStudio to the general MicroStudio.dev server, but it turned out that the project could not be imported.

If you want to try to see if you can import this project, go to this link >>

https://microstudio.io/i/Loginus/bitmaptextpixi/

  • Add the project to your projects (clone).
  • Export project .
  • Try importing .
  • For me, the import does not work properly and I get an error message (I don't know if it has anything to do with the first error, i.e. the BitmapText class)

Edit

I noticed that the PIXI.Texture.fromCanvas() method is missing in the version of the PIXI library provided by MicroStudio;

Edit 2

I looked at the older version of the documentation.

From 6.0 they removed this method .

Sorrey im not experinced enough to help but i will try to get someone who is to respond

Post a reply

Progress

Status

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