Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

vaneger

allegro screen "wave" effect

This topic is 5304 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im using allegro for graphics and was wondering how to allow for ripples when a user clicks the screen and have it warp the screen in a ripple pattern.

Share this post


Link to post
Share on other sites
Advertisement
Try changing the alpha value for each pixel outward from a central point. Sorry I can''t offer any code, I use SDL

The true general first seeks victory, then seeks battle
- Sun Tzu

Share this post


Link to post
Share on other sites
This is just a thought, but use a sine wave table have your pixels follow the path. Rotate the path around for each angle (360 degrees) and that should give you a ripple effect.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!