I am trying to make a hangman but i can't figure out how to make the guy when you get a wrong letter. i want it so it can be built in order but with random letters so if you could help that would be good.
Last edited by NAM1021 (2008-07-25 17:31:00)
Offline
Alright. I got this people (in the next post)

Offline
So, when you guess a wrong letter, you broadcast a message (in this case- wrong). Now, you are going to have a sprite called parts. It will have the head costume, the body, one arm, another arm, and than the legs. Now, when the green flag is clicked you will set the variable- costume_change -to 1. Now, when the sprite of the "hanging guy" receives wrong, it will switch it's costume to costume_change, go accordingly to the right position (so it's head isn't where it's feet are
) and stamp, than change costume_cange by 1. Kinda like this:
<when I receive[ wrong
<go to x
proper X position (so it doesn't look messed up) )y
same here
<switch to costume[ <{ costume_change }>
<stamp>
<change{ costume_change }by( 1

Offline
NAM1021 wrote:
Thanks for that is saved my day.
This is also DESIGN just to let you know.
Why'd you make another account? oh well, your welcome!

Offline
NAM1021 wrote:
my other one was the wrong email. Thanks Again.
Oh lol. And leave a link to this game on one of mine when your done so I can see it.

Offline
craploads of variables. like one for each letter in the puzzle. one on each letter of the puzzle to see if its in the puzzle. so example.
<when green flag clicked>
<forever>
<if><( <{ im in the puzzle }> <=> 1 )>
<if><key[ A ]pressed?>
<if><( found <=> 0 )>
<set{ found }to( 1
<switch to costume[ found
<else>
<wait until><( puzzle <=> x )>
Offline