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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-18-2011, 12:08 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: London
Posts: 31
TomWhitaker is on a distinguished road
Red face Explosion effect help needed

Hi all, I'm new here so please move if this is in the wrong forum..

I'm currently making a game where you have to tap monsters to make them disappear, but it looks a bit tame when they just disappear off the screen.. therefore I was wondering if anyone knew how to make the images kind of break up in an explosion effect or something similar?

Thanks in advance
TomWhitaker is offline   Reply With Quote
Old 06-18-2011, 12:59 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 136
Allah is on a distinguished road
Default

Couldn't you just shrink them to zero (using an animation), and then remove them?
Allah is offline   Reply With Quote
Old 06-18-2011, 06:22 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by TomWhitaker View Post
Hi all, I'm new here so please move if this is in the wrong forum..

I'm currently making a game where you have to tap monsters to make them disappear, but it looks a bit tame when they just disappear off the screen.. therefore I was wondering if anyone knew how to make the images kind of break up in an explosion effect or something similar?

Thanks in advance
The easiest thing to do would probably be to set up a UIImageView frame animation. You could create the animation frames in the image editor of your choice.

Take a look at the docs for UIImageView in the XCode help system. It has a property animationImages that takes an array of images to use for a "flip book style" animation where it shows frame after frame. There is a section at the beginning of the docs for UIImageView called "Animating Images". It lists the methods you would use.

I would suggest either installing an animationImages array into a monster's UIImageView when it dies, or hiding that monster and replacing it with an image view set up with an array of animationImages already set up.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 06-20-2011, 10:00 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: London
Posts: 31
TomWhitaker is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
The easiest thing to do would probably be to set up a UIImageView frame animation. You could create the animation frames in the image editor of your choice.

Take a look at the docs for UIImageView in the XCode help system. It has a property animationImages that takes an array of images to use for a "flip book style" animation where it shows frame after frame. There is a section at the beginning of the docs for UIImageView called "Animating Images". It lists the methods you would use.

I would suggest either installing an animationImages array into a monster's UIImageView when it dies, or hiding that monster and replacing it with an image view set up with an array of animationImages already set up.
Thanks very much, I'll look into it, I appreciate the help!
TomWhitaker is offline   Reply With Quote
Old 06-20-2011, 12:02 PM   #5 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: New York
Posts: 18
TheStuFactor is on a distinguished road
Default

Check out Particle Designer - iOS Game Particle Effects - Explosions Smoke Fire Rain Stars - iPhone iPad OSX Cocos2D

I use this to create really cool particle effects. The explosion effects are really cool and it allows you to customize already built particles.
TheStuFactor is offline   Reply With Quote
Old 06-21-2011, 08:52 AM   #6 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: London
Posts: 31
TomWhitaker is on a distinguished road
Default

Quote:
Originally Posted by TheStuFactor View Post
Check out Particle Designer - iOS Game Particle Effects - Explosions Smoke Fire Rain Stars - iPhone iPad OSX Cocos2D

I use this to create really cool particle effects. The explosion effects are really cool and it allows you to customize already built particles.
Thanks for the reply, but we're already working on a tight budget with this one and I sadly don't think I can afford to shell out Maybe as an improvement for an update!
TomWhitaker is offline   Reply With Quote
Old 06-21-2011, 10:32 AM   #7 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 5
httptunnel is on a distinguished road
Default

Quote:
Originally Posted by TomWhitaker View Post
Thanks for the reply, but we're already working on a tight budget with this one and I sadly don't think I can afford to shell out Maybe as an improvement for an update!
WOW...that is a tight budget seeing as the particle program is only 8 bucks !!

Just sayin'
httptunnel is offline   Reply With Quote
Old 06-22-2011, 04:32 AM   #8 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: London
Posts: 31
TomWhitaker is on a distinguished road
Default

Quote:
Originally Posted by httptunnel View Post
WOW...that is a tight budget seeing as the particle program is only 8 bucks !!

Just sayin'
haha I know, were kind of stingy
TomWhitaker is offline   Reply With Quote
Old 06-22-2011, 04:44 AM   #9 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

O.o $8...... can't afford to skip one lunch?
Domele is offline   Reply With Quote
Old 06-22-2011, 09:16 AM   #10 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: London
Posts: 31
TomWhitaker is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
O.o $8...... can't afford to skip one lunch?
Healthy diet makes for good programming but in all seriousness we just wanna figure out how to do it so it's a bit more flexible.
TomWhitaker is offline   Reply With Quote
Old 07-07-2011, 03:18 PM   #11 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: New York
Posts: 18
TheStuFactor is on a distinguished road
Default

It's more cost efficient to spend the $8 than to spend a day writing your own particle system...just saying.

Good luck reinventing the wheel!!
TheStuFactor is offline   Reply With Quote
Reply

Bookmarks

Tags
advice, explosion, iphone, objective c, programming

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: 324
7 members and 317 guests
chemistry, Dnnake, iOS.Lover, lendo, Leslie80, pbart, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

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