Topic:   My iPhone Game Tutorials for Beginners   (Read 352694 times)


0 Members and 1 Guest are viewing this topic.

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #255 on: May 24, 2011, 12:37:18 AM »
That's perfect.
Would I be right in saying because I am putting them there I do not need to put the 'delgate.' in front of the variable name?
ie:
soundOption = TRUE;
rather than
delegate.soundOption = TRUE;

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #256 on: May 24, 2011, 01:31:59 AM »
All good:

To change the switch I used:
        [soundSwitch setOn:YES animated:YES];
or
        [soundSwitch setOn:NO animated:YES];

and then had to remember to link the switch in IB as a Referencing Outlet




Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #257 on: May 24, 2011, 10:00:18 AM »
Yeah, awesome.
Sounds like your figuring stuff out on your own. Soon when you run into a road block you'll be able to overcome it without asking.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #258 on: May 26, 2011, 05:59:22 PM »
which cases would I have to learn about to make an RPG, and also in a custom case can you have numbers in the name?
P.S. I'm making a THAC0 class!
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #259 on: May 26, 2011, 06:10:49 PM »
(1) Don't use the word case in place of function. A case has it's own specific use in Obj-C.
(2) You'd have to learn how to display graphics, move them, make a timer to make game logic, and make custom classes to make it easier to handle such things as bad guys and stuff.
(3) In a custom function you can have numbers in the name..
(4) What is THAC0?

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #260 on: May 28, 2011, 01:26:11 AM »
With the new template to access any screen you have to go via the MainMenu.
I have modified one screen so it goes directly to a different screen and back again. It works fine but when it returns how can I tell that it has returned? ViewDidLoad is not flagged in this case.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #261 on: May 28, 2011, 07:52:32 AM »
If you look in the docs for UIViewController there should be a viewDidAppear function. That gets called when your view in the controller is show.
« Last Edit: May 28, 2011, 07:53:37 AM by Gandolf »

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #262 on: May 28, 2011, 10:12:49 PM »
Thanks - that worked.
I search and try to figure it out but a simple hint like that is perfect!!!

breshi


  • GMG Newbie

  • *


  • Posts: 31

  • Carpe Diem
Re: My iPhone Game Tutorials for Beginners
« Reply #263 on: May 28, 2011, 11:54:13 PM »
Everything now is working well - 99% of the time.
Occasionally if I am swapping between screens I get a Bad Exec error and from past experience it means I have a memory leak somewhere.
I made sure every time I alloc or retain I have a matching release - I did miss a few so I put them in.
Still happens so I found an "analyse" option and ran it, the only potential issues it came up with are in the MainMenu.m

- (IBAction)options {
    OptionsScreen *controller = [[OptionsScreen alloc] initWithNibName:@"OptionsScreen" bundle:nil];
    [[self navigationController] pushViewController:controller animated:YES];
}

Here it says "Potential leak of an object allocated on line 59 and stored into 'controller'"

I get the same message for each screen that is called.

Is it because we are alloc OptionsScreen and not releasing it anywhere - I have not really changed much in this part of the Template so am hesitant to make any changes.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #264 on: May 29, 2011, 12:14:02 AM »
No problem.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #265 on: June 05, 2011, 03:11:36 PM »
Quote
(1) Don't use the word case in place of function. A case has it's own specific use in Obj-C.
(2) You'd have to learn how to display graphics, move them, make a timer to make game logic, and make custom classes to make it easier to handle such things as bad guys and stuff.
(3) In a custom function you can have numbers in the name..
(4) What is THAC0?
sry I just haven't been on the computer in general.
1.) oh okay I though they were the same.
2.) right that's probably what I'll try to find out next. It might be a good tut theme
3.) do you mean can't or can?
4.) THAC0 To Hit At Armor Class Zero. It's a AD&D rule on how to hit enemies If you don't have your combat tables.
« Last Edit: June 05, 2011, 03:12:04 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: My iPhone Game Tutorials for Beginners
« Reply #266 on: June 05, 2011, 03:26:34 PM »
(3) Can
(4) Never played D&D.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #267 on: June 05, 2011, 04:23:33 PM »
you should. In my opinion it could most definitely be the Best game of all time in adventure & RPG, sci-fi, and western game history.
I'm talking about the paper and pens version, not Online D&D.
And yes I do consider Boot Hill, Alpha Omega, and Gamma World all D&D.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #268 on: June 06, 2011, 07:09:31 PM »
I found this tut by you somewhere. I don't remember where

http://www.youtube.com/watch?v=GUUF5ojX1ps&NR=1

but it wasn't posted here so I took the liberty.
And by the way This one was probably one of your most helpful for me! Thanks :)
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: My iPhone Game Tutorials for Beginners
« Reply #269 on: June 06, 2011, 07:39:39 PM »
If you make an app on Xcode. How do you put it on your iPod without a $100 developer account.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to