Moderators: MelissaB, kgudger, Ray Trent
They could change the sound as the position changes, which is not difficult to do. The students can use conditional statements to do this. Making the sound more “continuous” is more difficult and may be difficult at this level. However, setting up test statements in their program, is something they should be able to do as part of their work with GameMaker. They can use the Audacity audio editor, or another audio program, to record their sounds--or to edit free sounds they may choose to use.
This site may be helpful: http://gamemaker.info/en/manual/406_01_basic. They may be able to use sound_fade(index,value,time) function and/or the sound_pan(index, value) function (sound change left to right) to make a more “continuous” sound. The test block would run when the ball object is moving. Logic: If object.y is greater than the lowest paddle then sound_fade(index, 0,time), If object.y is less than the upper paddle then sound_fade(index,1,time). Or something along these lines.
Return to Grades K-5: Math and Computer Science
Users browsing this forum: No registered users and 0 guests