Advertisement
Azyhaha

funny opposition modchart from definitive edition!!! (HAXE)

May 29th, 2022
2,444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.62 KB | None | 0 0
  1.     if (SONG.song.toLowerCase() == 'yoursongnamehere')
  2.             {
  3.                 playerStrums.forEach(function(spr:FlxSprite)
  4.                 {
  5.                     spr.x = ((FlxG.width / 12) - (spr.width / 7)) + (Math.sin(elapsedtime + (spr.ID)) * 500);
  6.                     spr.x += 500;
  7.                     spr.y += Math.sin(elapsedtime) * Math.random();
  8.                     spr.y -= Math.sin(elapsedtime) * 1.3;
  9.                 });
  10.                 opponentStrums.forEach(function(spr:FlxSprite)
  11.                 {
  12.                     spr.x = ((FlxG.width / 12) - (spr.width / 7)) + (Math.sin((elapsedtime + (spr.ID )) * 2) * 500);
  13.                     spr.x += 500;
  14.                     spr.y += Math.sin(elapsedtime) * Math.random();
  15.                     spr.y -= Math.sin(elapsedtime) * 1.3;
  16.                 });
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement