Share
View previous topicGo downView next topic
avatar
Spritan
Spritan
Reputation:
Age:
Posts:
Registration Date:
Location:
View user profile

Textbox invisible button need help!

on 4/17/2012, 10:28 pm
I need help with a textbox with an invisible button for my sprite animation like SMBZ how they make your press space with a textbox to continue the animation how do you also make the animation stop during it thanks.
avatar
Spritan
Spritan
Reputation:
Age:
Posts:
Registration Date:
Location:
View user profile

Re: Textbox invisible button need help!

on 4/17/2012, 10:44 pm
1. Wrong section.

2. On a frame, put the code stop(); in, this prevents you from moving past the frame.

3. On the frame, put a button off the screen, and give it the code:

on(keyPress "<Space>") {
play();
}

This checks to see if the key "space" is pressed, and if it checks and finds it has been pressed, it runs the code inside the brackets. The play() is the opposite of stop(), as it resumes the animation instead of stopping it.


Last edited by Jellal on 4/18/2012, 5:37 pm; edited 1 time in total





If your own full brother, or your son or daughter, or your beloved wife, or you intimate friend, entices you secretly to serve other gods, whom you and your fathers have not known, gods of any other nations, near at hand or far away, from one end of the earth to the other: do not yield to him or listen to him, nor look with pity upon him, to spare or shield him, but kill him. Your hand shall be the first raised to slay him; the rest of the people shall join in with you. You shall stone him to death, because he sought to lead you astray from the Lord, your God, who brought you out of the land of Egypt, that place of slavery. And all Israel, hearing of this, shall fear and never do such evil as this in your midst.
Deuteronomy 13:7-12
avatar
Spritan
Spritan
Reputation:
Age:
Posts:
Registration Date:
Location:
View user profile

Re: Textbox invisible button need help!

on 4/17/2012, 11:01 pm
sorry, i posted on the wrong section i thought it was the action scripting category xD ;( my bad and thanks i'll try it :)
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum