plz help me! i hav this page where u can choose ur character by clicking on them. I hav 4 sprites and 1 background so far.....I cant figure out how u can script it to where u can choose ur character by clicking on the sprite, and the going to the next background!! help plz!
Thanks,
-Rukia Kuchiki
Offline
Lets say that you have 4 buttons for character selection.
But first...
Your character sprite should be set up so that it can become any character depending on a variable.
//kinda like this
if (charSelect=1)
only do character 1 stuff
if (charSelect=2)
only do character 2 stuff
And so on
On now for the code on the buttons.
if button1 clicked
charSelect=1
broadcast startgame
Just do this for each button.
Offline
archmage wrote:
Lets say that you have 4 buttons for character selection.
But first...
Your character sprite should be set up so that it can become any character depending on a variable.
//kinda like this
if (charSelect=1)
only do character 1 stuff
if (charSelect=2)
only do character 2 stuff
And so on
On now for the code on the buttons.
if button1 clicked
charSelect=1
broadcast startgame
Just do this for each button.
plz show this in script form....that way I understand it better....
Offline
<when[ button1 ]clicked>
<set{ charselect }to(1
<broadcast[ startgame ]and wait c>
Thats it.
When startgame is broadcasted just make it so that it changes backgrounds.
Offline
thx for helping me!! ^o^
Offline