well it may sound funny... but i don't know how to make an array (i suck at scripting)
anyway.. here are some news about the game
Feautures:
-11 looping negatives (freestyle mod)
-9 differit beats (in timeline mod… something like guitar hero, gotta catch the notes)
- 18 beatbox sounds (on keyboard not button for mouse)
-ambiental sounds
- verry friendly design , you can hide \ un-hine anything pannel you want…
-funny animations that keep everything active
and a print screen
Don't blame me cuz' my English sucks ) i'm from romania XD
You want to change the X, Y positions of an image to simulate a shake (during sound play???)
to simulate a shake, you would put in the on every frame script...
element ("cloudy blue sky").x = (root.width/2)+random(4);
element ("cloudy blue sky").y = (root.height/2)+random(4);
now, when you do this, make sure that your image is around 10 pixels wider, and 10 pixels taller than your movie.
if you want simulate this only during the playing of a sound put...
if (element ("your_sound").position != 0){
element ("cloudy blue sky").x = (root.width/2)+random(4);
element ("cloudy blue sky").y = (root.height/2)+random(4);
}
now, since you have so many sounds, you should probably have them in an array... so try this
for (var a=0; a<sound_array.length; a++){
if (sound_array[a].position != 0){
element ("cloudy blue sky").x = (root.width/2)+random(4);
element ("cloudy blue sky").y = (root.height/2)+random(4);
}
}
hey, I forgot to attach the file, but I thought of something else to.
If your game has volume control, maybe the image should shake more violently with loader volume!
if you want to do that, try this
for (var a=0; a<sound_array.length; a++){
if (sound_array[a].position != 0){
element ("cloudy blue sky").x = (root.width/2)+random(sound_array[a].getVolume()/10);
element ("cloudy blue sky").y = (root.height/2)+random(sound_array[a].getVolume()/10);
}
}
just remember, that the more violent the shake is, the bigger the image has to be (bigger than the root) Also, make sure that the position of the center of your image is... well... centered. not set to 0,0