Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (SONG.song.toLowerCase() == 'yoursongnamehere')
- {
- playerStrums.forEach(function(spr:FlxSprite)
- {
- spr.x = ((FlxG.width / 12) - (spr.width / 7)) + (Math.sin(elapsedtime + (spr.ID)) * 500);
- spr.x += 500;
- spr.y += Math.sin(elapsedtime) * Math.random();
- spr.y -= Math.sin(elapsedtime) * 1.3;
- });
- opponentStrums.forEach(function(spr:FlxSprite)
- {
- spr.x = ((FlxG.width / 12) - (spr.width / 7)) + (Math.sin((elapsedtime + (spr.ID )) * 2) * 500);
- spr.x += 500;
- spr.y += Math.sin(elapsedtime) * Math.random();
- spr.y -= Math.sin(elapsedtime) * 1.3;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement