Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-09-2011, 04:57 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 1
chrisevans1001 is on a distinguished road
Default 2d water wave effect

Hi there,
Just looking for a little advice. I'm working on a 2D game and presently have just a plain blue tile for the water. I then discovered this little video:

Crimson: Steam Pirates - First Look - YouTube

If you watch a few seconds in, you'll see some pictures of the water and what appears to be random waves placed across it.

Any suggestions how this may have been achieved?

Cheers
chrisevans1001 is offline   Reply With Quote
Old 12-09-2011, 05:34 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Location: California
Posts: 225
KarlJay is on a distinguished road
Default

No expert here, but can you group tiles together to make a larger area, then fade a 'white cap' in and out? In other words make 6 of your tiles with increasing levels of the white cap, then fade them in on a timer. And for the random effect, define an array and work the fading section around the array.
KarlJay is offline   Reply With Quote
Old 12-11-2011, 10:24 AM   #3 (permalink)
Registered Member
 
dennno's Avatar
 
Join Date: Sep 2011
Posts: 20
dennno is on a distinguished road
Default

Quote:
Originally Posted by chrisevans1001 View Post
Hi there,
Just looking for a little advice. I'm working on a 2D game and presently have just a plain blue tile for the water. I then discovered this little video:

Crimson: Steam Pirates - First Look - YouTube

If you watch a few seconds in, you'll see some pictures of the water and what appears to be random waves placed across it.

Any suggestions how this may have been achieved?

Cheers
I'm guessing you mean the very faint small waves generated randomly. From the looks of it they created the graphic animation and play that animation at random locations of the map depending on what part of the map is visible.

I don't know if you're using a game engine or not, but how I would do it (with cocos2d) is:
1. create the simple animation on flash/photoshop
2. schedule a timer to handle animations at random location
3. at every tick generate random coordinates, based on the current portion of the map visible on the screen.
4. loop until no longer required.
dennno is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 380
9 members and 371 guests
apatsufas, comicool, Creativ, Dalia, dansparrow, LunarMoon, mer10, Murphy, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0