I know how to add fonts to the game using the font.css file in the Fonts directory, something I might need to do anyway. I also know how to edit Styles a la CSS.
Let me talk through what I understand about PIXI.Text so far, and you can correct me if I'm off.
From what I found in the video, I can put this part in a pixiStyles.js file:
var stylename = new PIXI.TextStyle({
fontFamily: 'Arial',
fontSize: 36,
fontStyle: 'italic',
fontWeight: 'bold',
fill: ['#ffffff', '#00ff99'], // gradient
stroke: '#4a1850',
strokeThickness: 5,
dropShadow: true,
dropShadowColor: '#000000',
dropShadowBlur: 4,
dropShadowAngle: Math.PI / 6,
dropShadowDistance: 6,
wordWrap: true,
wordWrapWidth: 440
});
And then use in a Script Command in the event editor:
textname = new PIXI.Text('Basic text in pixi', stylename)
SceneManager._scene.addchild(textname)
And I can have different 'stylename's and 'textnames' for different Artistic Texts, right?
And I can also get a bit used to Object Oriented Coding, because each 'textname' has their own....settings, as I see it. Using Script Calls, I can do the following:
textname.alpha = x (To set a 'textname's visibility of opacity, the X being anywhere between 0 (fully off) to 1 (fully on)
textname.x = the X Coordinate where the text begins
textname.y = the Y Coordinate
textname.scale.x = the x scale, where the set number is multiplied to the normal width of the text
textname.scale.y = the y scale, where it's multiplied to the normal height
With these settings, I can move the Artistic Text around, correct me if i'm wrong.
I haven't fully understand textname.rotation yet, but that will come later.