I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
great Tutorial ! I would like to know how to do this exept for the Iphone. ( MacPro/Macbook ) I see a lot of Tutorials regarding Animation on the Iphone but not on the regular machines. Any Idea ?
@8bitIsland If you mean that you want to do the same thing for the Mac desktop environment, the code is really the same as far as I know. Just create a new XCode project and choose a standard Mac application as the template
never got onto the second part :/ how to make the animation change or 'breathe fire' mid animation. arg, it's driving me nuts.
i want to interrupt and animation with another animation, but only when the initial animation is playing. can Anyone point in me in the right direction ;/
I cannot believe all you bozos on here whining... This is low quality cannot read the code.
It's a tutorial! It's meant to GUIDE you so you can go write your own. Not copy his! He's been kind enough to spend the time to explain, record this vid and upload it.
If you had HALF an understanding of how to actually program in the first place, you'd be able to follow what he's doing without having to copy his exact code, compile it and then show your friends... "Look what I made.. aren't I cool!"
@bugzilla2001 I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
looks great, any chance i can download the project? tried it and couldn't get it to work : got this in .m @synthesize dragon; @synthesize anim1; - (void) viewDidLoad { anim1 = [[NSMutableArray alloc] init]; for(int i = 1; i < 27; i++) { NSString *pictureName = [NSString stringWithFormat:@"dragon%d.png",i]; UIImage *img = [UIImage imageNamed:pictureName]; if (img) [anim1 addObject:img]; } [dragon setAnimationImages:anim1]; [dragon setAnimationDuration:1.2f]; [super viewDidLoad]; }
1) Dont use imageNamed. It caches a lot. Better use [UIImage imageWithContentsOfFile:]
2) Have you tried this on a device? If yes and everything is ok, than you are lucky to have only 20 small frames in your animation. For around 40-50 320x320 you'll get memory warning.
3) Dont forget to release NSMutableArray after you have assigned it to animationImages. Release each time after you are done with explicitly created object
very little people are writing tutorials about stuff like this so it's great you made one. (maybe they don't want competition)
I just had a question, have you finished making your game and tested it on a device? I tried making a game loading sprites with UIimage view without using OPENGL and it would barely run on the device. Is your animation done by using a timer thread?
I'm not nearly finished with my game yet, but it does run fine so far on the device. Open GL will always be faster and probably the only practical choice for an arcade style game.
thx for the tutorial! followed this to a T but im ripping my hair out over this error :-(
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController loadView] loaded the "blux6ViewController" nib but no view was set.'
Hmmm...did you connect the view to the File's Owner in Interface Builder? If you're still getting the error after that then try writing Apple tech support.
This is an awesome tutorial. I have read a few iPhone dev books and countless tutorials, and this is the first that I've found that covered this specific material. It seems so simple now that I've seen it done. OP, if you can keep them at this quality, I would gladly pay for a hi-res copy. There's heaps of information out there that's focused on creating DBs or list views, but this is the first I've seen about game dev. THANKS Bugzilla, I'm expecting more! :)
I will post the source code on my website for this project very soon. Sorry, but the YOutube resolution is just too low to show the text clearly onscreen.
Hey, looking forward to reading the source code :). I am unable to read the source code for when you create the mutable array then load the images, etc...
Great tutorial, but I can't see anything!!!!
jamesjamesjac 10 months ago
This has been flagged as spam show
I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
glych002 1 year ago
This has been flagged as spam show
I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
glych002 1 year ago
I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
glych002 1 year ago
very helpful! thanks
coolshoos 1 year ago
great Tutorial ! I would like to know how to do this exept for the Iphone. ( MacPro/Macbook ) I see a lot of Tutorials regarding Animation on the Iphone but not on the regular machines. Any Idea ?
8bitIsland 1 year ago
@8bitIsland If you mean that you want to do the same thing for the Mac desktop environment, the code is really the same as far as I know. Just create a new XCode project and choose a standard Mac application as the template
bugzilla2001 1 year ago
never got onto the second part :/ how to make the animation change or 'breathe fire' mid animation. arg, it's driving me nuts.
i want to interrupt and animation with another animation, but only when the initial animation is playing. can Anyone point in me in the right direction ;/
TurKdiRty 1 year ago
I cannot believe all you bozos on here whining... This is low quality cannot read the code.
It's a tutorial! It's meant to GUIDE you so you can go write your own. Not copy his! He's been kind enough to spend the time to explain, record this vid and upload it.
If you had HALF an understanding of how to actually program in the first place, you'd be able to follow what he's doing without having to copy his exact code, compile it and then show your friends... "Look what I made.. aren't I cool!"
donttalkcrap 2 years ago
could you put the source code in the description or like the actual project because i cant actually see the code
geniousmac 2 years ago
This has been flagged as spam show
Are you a beginner with the iPhone SDK and need some help?
Then visit icodehelp (.) com
Your first steps into iPhone coding.
icodehelp 2 years ago
look good, but i cant see it very low quality. can i get the code?
kataynoimeaw 2 years ago
Anybody can me pass the code? I can't see it correctly :(
Thanks!!!!
sergirc88 2 years ago
I had the impression that you where not using OpenGL...
animatroller 2 years ago
Correct. I am using UIKit only.
bugzilla2001 2 years ago
@bugzilla2001 I am having trouble with my fire button in my game. I want to create a new image every time the button is pressed, which I have done. The problem is getting it to disappear at a given distance. How did you set up your fire button sprite code in your app? Any help would be appreciated. Thanks.
glych002 1 year ago
tupaigoreng 2 years ago
Fantastic!! 5 stars. Keep these installments coming.
bputubebp 2 years ago
siroganes 2 years ago
Hello bugzilla2001
Your tutorial is very good... thanks..
but low qulity.. uhm...
I Want to watch your tutorial in HD qulity... :) plz...
siroganes 2 years ago
to make an image stop animating do this
[dragon stopAnimating];
in the function you want
gtLittlestwarrior 2 years ago
1) Dont use imageNamed. It caches a lot. Better use [UIImage imageWithContentsOfFile:]
2) Have you tried this on a device? If yes and everything is ok, than you are lucky to have only 20 small frames in your animation. For around 40-50 320x320 you'll get memory warning.
3) Dont forget to release NSMutableArray after you have assigned it to animationImages. Release each time after you are done with explicitly created object
hardWideo 2 years ago
when I go to make the connections, My image isn't one of the options under file's owner?
I have had the same problems with other people's tutorials that do this and I cannot figure out why?
I appreciate your help
loomboomper 3 years ago
hey, nice tutorial!
Could you please post the animation code?
loomboomper 3 years ago
very little people are writing tutorials about stuff like this so it's great you made one. (maybe they don't want competition)
I just had a question, have you finished making your game and tested it on a device? I tried making a game loading sprites with UIimage view without using OPENGL and it would barely run on the device. Is your animation done by using a timer thread?
GikoSan 3 years ago
I'm not nearly finished with my game yet, but it does run fine so far on the device. Open GL will always be faster and probably the only practical choice for an arcade style game.
My animation does use a timer.
bugzilla2001 3 years ago
thx for the tutorial! followed this to a T but im ripping my hair out over this error :-(
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController loadView] loaded the "blux6ViewController" nib but no view was set.'
68040E 3 years ago
Hmmm...did you connect the view to the File's Owner in Interface Builder? If you're still getting the error after that then try writing Apple tech support.
bugzilla2001 3 years ago
This is an awesome tutorial. I have read a few iPhone dev books and countless tutorials, and this is the first that I've found that covered this specific material. It seems so simple now that I've seen it done. OP, if you can keep them at this quality, I would gladly pay for a hi-res copy. There's heaps of information out there that's focused on creating DBs or list views, but this is the first I've seen about game dev. THANKS Bugzilla, I'm expecting more! :)
jesselane 3 years ago
source code or sample project? could i find the source anyware online?
radiofuzz33 3 years ago
I will post the source code on my website for this project very soon. Sorry, but the YOutube resolution is just too low to show the text clearly onscreen.
bugzilla2001 3 years ago
Hey, looking forward to reading the source code :). I am unable to read the source code for when you create the mutable array then load the images, etc...
jamesfolk1 3 years ago