6 Forum Posts by "Poachii"
At 2/20/14 02:24 PM, milchreis wrote: Do not work with scenes.
They always cause trouble.
It doesn't matter if I use a scene or a keyframe. It still flickers.
I have some code to press the ESC key and send it to a different scene. The problem with it is I need it to freeze on the pause menu after one click, but if you hold it down it switches between prev. frame and the pause menu. I want to know how to pause it on the pause menu with one click and go to the previous frame with another. Here is my code.
this.onEnterFrame=function(){
if (Key.isDown(Key.ESCAPE)) {
if(!gamePaused){
gotoAndStop("Pause Menu", 1);
}
}
};
and for the pause menu code-
this.onEnterFrame = function()
{
if (Key.isDown(Key.ESCAPE))
{
prevScene();
}
};
At 2/19/14 08:25 PM, MSGhero wrote:At 2/19/14 08:14 PM, Poachii wrote: how to make an array that holds selected text?That's a bit vague and unclear. Can you explain what you're actually trying to do?
I'm trying to make a listener to select the text. I would like to be able to select the text and then click buy or sell. Like this.
At 2/19/14 05:53 PM, milchreis wrote:At 2/19/14 04:54 PM, Poachii wrote: I need to know how to make text selectable for a game I am making. Not just highlight, but to be able to select the text and click the buy button.Add a click listener to it. When clicked toggle a variable that defines if it is selected or not.
Or add/remove an item that should be bought to an array that specifies what's selected.
There are many ways to do this. You should specify more clearly what you want.
Sorry. I know it's not very clear. Like in this picture.
You're able to select the text and click buy, sell, etc..
I need to know how to make text selectable for a game I am making. Not just highlight, but to be able to select the text and click the buy button.
Thanks

