Added: 3 years ago
From: bugzilla2001
Views: 19,498
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (29)

Sign In or Sign Up now to post a comment!
  • Great tutorial, but I can't see anything!!!!

  • 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.

  • very helpful! 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!"

  • could you put the source code in the description or like the actual project because i cant actually see the code

  • look good, but i cant see it very low quality. can i get the code?

  • Anybody can me pass the code? I can't see it correctly :(

    Thanks!!!!

  • I had the impression that you where not using OpenGL...

  • Correct. I am using UIKit only.

  • @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.pn­g",i]; UIImage *img = [UIImage imageNamed:pictureName]; if (img) [anim1 addObject:img]; } [dragon setAnimationImages:anim1]; [dragon setAnimationDuration:1.2f]; [super viewDidLoad]; }
  • Fantastic!! 5 stars. Keep these installments coming.

  • (void) viewDidLoad{ anim1 = [[NSMutableArray alloc] init]; for(int i = 1, 20 ,i++){ NSString *pictureName = [NSString stringWithFormat:@"s%d.png", i ]; UIImage *img = [UIImage imageName:pictureName]; if(img) [anim1 addObject:img]; } [dragon setAnimationImage:anim1]; [dragon setAnimationDuration:1.2f]; [dragon startAnimation]; [super viewDidLoad]; }
  • Hello bugzilla2001

    Your tutorial is very good... thanks..

    but low qulity.. uhm...

    I Want to watch your tutorial in HD qulity... :) plz...

  • to make an image stop animating do this

    [dragon stopAnimating];

    in the function you want

  • 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

  • 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

  • hey, nice tutorial!

    Could you please post the animation code?

  • 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.

    My animation does use a timer.

  • thx for the tutorial! followed this to a T but im ripping my hair out over this error :-(

    *** Terminating app due to uncaught exception 'NSInternalInconsistencyExcept­ion', 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! :)

  • source code or sample project? could i find the source anyware online?

  • 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...

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more