FNF-CNE-Devs / YoshiCrafterEngine

Apache License 2.0
24 stars 20 forks source link

Help: Moving Note Strums #318

Closed PumpTutorials closed 2 years ago

PumpTutorials commented 2 years ago

How would I make notes move? (I would prefer in haxe) Can someone help me with this?

Examples: https://user-images.githubusercontent.com/73810550/147987067-d99ddbbe-ae98-4293-948c-3bb7f4c61335.mp4 https://www.youtube.com/watch?v=z20bwocgrC8

YoshiCrafter29 commented 2 years ago

getStrum(id) will return a strum (gray note) that you'll be able to move by changing their x and y positions. you can also set the angle via angle and force a note scroll angle via notes_angle

PumpTutorials commented 2 years ago

that doesnt really help but something that would help is tweening this:

function beatHit(curBeat) { for (i in 0...8) { PlayState.playerStrums.members[1].x += 32 Math.sin(curBeat + i2); } }