This site requires JavaScript, please enable it in your browser!
Greenfoot back
Mr.Green
Mr.Green wrote ...

2016/2/11

stickman exercise 3.32

Mr.Green Mr.Green

2016/2/11

#
i am new to greenfoot so, i don't know much. i am trying to make the stickman move right only when i make noise but, i am stuck. public class GreenfootSound extends Actor { /** play music and move stickman * */ public void Play() { Greenfoot.playSound("move.wav"); move(3); } } can anybody help me to solve this problem? thanks in advance!!!
danpost danpost

2016/2/11

#
Am I correct in saying that you named the class that creates your stickman object 'GreenfootSound'? That seems quite odd. Anyways, if so, where is your act method that should determine when the 'Play' method is called?
You need to login to post a reply.