Skip to content

Text box still shows up white after changing properties #71

Description

@ThePandaJam

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions