marklovers / kaplay

🦖 A JavaScript game library
https://kaplayjs.com
MIT License
247 stars 17 forks source link

feat: improved shake function #116

Open amyspark-ng opened 1 month ago

amyspark-ng commented 1 month ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Right now the shake function it's kinda meh, if you want it to have a certain duration you can't and if you put it in onUpdate it will break

Describe the solution you'd like

A clear and concise description of what you want to happen.

For the function to have 3 parameters, strength, duration, and interval (interval between each "shake")

Additional context

Add any other context or screenshots about the feature request here.

I think the Geometry Dash shake trigger is exactly what im talking about https://www.youtube.com/watch?v=aBBYAEOatN0