Question 1:
How can you program a sprite to ask a question, and when it gets a specific answer, broadcast something?
Question 2:
I want to make a sprite, when touching the mouse, change to a different costume. But, If it isn't touching the mouse, go back to it's 1st costume. How can I do this?
Offline
ask [what is the codeword?] and wait if <(answer) = [hello!]> broadcast [start v]
forever if <touching [mouse-pointer v]?> switch to [costume 2 v] else switch to [costume 1 v]
Last edited by Prestige (2012-08-04 18:18:32)
Offline
Prestige wrote:
ask [what is the codeword?] and wait if <(answer) = [hello!]> broadcast [start v]forever if <touching [mouse-pointer v]?> switch to [costume 2 v] else switch to [costume 1 v]
I added and changed a few things:
when gf clicked ask [what is the codeword?] and wait if <(answer) = [hello!]> broadcast [start v] end
when gf clicked forever if <touching [mouse-pointer v]?> switch to costume [costume 2 v] else switch to costume [costume 1 v] end
Last edited by ErnieParke (2012-08-04 21:27:27)
Offline