Hi! I'm trying to make a transparent text input box (or one with the same colour as the background image) in my game and I've been changing the properties to suit my needs, but the box still shows up white. Can't really find much help elsewhere online...
Here's my code:
var nameInput = game.add.inputField(600, 510, {
font: "32px 'Press Start 2P'",
fill: "#ffffff",
align: "center",
borderWidth: 0,
borderColor: '#ffffff',
//changing border in the text configuration worked, so trying to change bgColour here
background: "#0BE783",
});
//changing colour to blend in with background
nameInput.backgroundColor = "#0BE783";
nameInput.fillAlpha = 0;
nameInput.width = 300;
nameInput.height = 34;
nameInput.cursorColor = '#ffffff';
I'm using Phaser v2.3.0
@AleBles
Hi! I'm trying to make a transparent text input box (or one with the same colour as the background image) in my game and I've been changing the properties to suit my needs, but the box still shows up white. Can't really find much help elsewhere online...
Here's my code:
I'm using Phaser v2.3.0
@AleBles