Jump to content
  • Advertisement

Archived

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

allegro screen "wave" effect

This topic is 5155 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!