So I am trying to make dialogue in my game and when the text appears on screen it stretches off the side of the screen. Is there a quick fix for this?
Here’s the code inside my text entity just in case:
package {
import net.flashpunk.Entity;
import net.flashpunk.graphics.Text;
public class DialogText extends Entity{
public function HelloWorld()
{
setHitbox(800, 600);
}
override public function update():void
{
graphic = new Text("HERES A BUNCH OF TEXT TO DEMONSTRATE THE PROBLEM I AM HAVING THE ORGINAL TEXT IS KINDA WIERD TO TO THE SUBJECT MATTER OF THE GAME I AM MAKING BUT I GUESS IT DOESN'T REALLY MATTER BECAUSE PEOPLE WILL BE ABLE TO PLAY THE GAME WHEN IT IS FINISHED ANYWAY IM GONNA QUIT NOW");
}
}
And that’s about it. If you could help that would be great.