tabularelf / gamemaker-kitchen

MIT License
6 stars 9 forks source link

GML-Animated Flag #157

Closed Grisgram closed 1 month ago

Grisgram commented 3 months ago

What kind of resource is this?

Library

If other was selected, what is it?

No response

Logo

https://www.coldrock.games/assets/raptor/gml-animated-flag-logo.png

Description

Vertex-based real-time rendering of any sprite resource as a waving flag in the wind

Authors

Grisgram

Link to your resource

https://github.com/Grisgram/gml-animated-flag

Tags

Animation, Vertex, Sprites

Post

A simple, vertex based animation, that offers many settings to customize:

settings

Variable Description
animation_fps how many frames shall be calculated?
intensity how many waves are on the flag
wave_speed how fast do the waves move
wave_height how strong are the waves
vertex_count if -1, then default of 10% of sprite width
render_width if -1, then image_xscale as set in room editor
render_height if -1, then image_yscale as set in room editor

Here's a screenshot of the demo room in the repository

demo-screen

What versions does your resource support?

What platforms has this been tested on?

tabularelf commented 1 month ago

Added!