-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textures should have a way to erase
a portion of the texture via a size / width / height
#6853
Comments
How about |
Yes that could work too. Infact i was searching for this method at first, but then found it's called erase. |
|
Yes that would be the best way I think. It should take 4 optional parameters ala
Ok understood now :) thx for clarifying |
Are you running full screen on a mobile device? The font is so blurry |
Just zoomed in by a lot with the main cam. Maybe that's why |
Hi @SelfDevTV, thanks for submitting this feature request. We have implemented the feature that will allow you to clear a specified area of a dynamic texture like so: This update has been pushed to the |
OMG you guys are awesome. Keep it up :) Thank you very much! |
The problem
I have a dynamic texture I draw 1000s of numbers on it (via
Phaser.Gameobjects.Text
orBitmapText
) and viatex.draw()
. Sometimes I want to remove the text from a specific location on the texture. The only way I found this was via.erase
.Problem is it only takes in a Gameobject but not the size itself. When i give it my text gameobject it will remove it but in a very weird way. Here is a screenshot:
A fellow discord mate helped me out with a workaround:
But still I thought why not implement another way of this function, that will also take in a size or width + height parameter. I would also like to try to implement it.
API for example for a
DynamicTexture
might look like this:dynTexture.erase(width: number, height: number = width, x: ....)
[Optional] Do you want to help provide this feature?
Yes. API for example for a
DynamicTexture
might look like this:dynTexture.erase(width: number, height: number = width, x: ....)
The text was updated successfully, but these errors were encountered: