<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Andy Girvan Blog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-3ce423c7" type="application/json"/><link>http://andygirvanblog.disqus.com/</link><description></description><atom:link href="http://andygirvanblog.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 04 May 2011 11:33:55 -0000</lastBuildDate><item><title>Re: Balancing Personal and Professional Development Projects</title><link>http://andygirvan.com/2011/04/balancing-personal-and-professional-development-projects/#comment-196920579</link><description>Thanks, I hope it helps you out :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Wed, 04 May 2011 11:33:55 -0000</pubDate></item><item><title>Re: Balancing Personal and Professional Development Projects</title><link>http://andygirvan.com/2011/04/balancing-personal-and-professional-development-projects/#comment-196090972</link><description>Great document. I don't normally post comments on blogs, that's how much I like this document. :) (BTW, I found your site via a google search for iphone app collision detection).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frazzled Penguin</dc:creator><pubDate>Mon, 02 May 2011 23:48:54 -0000</pubDate></item><item><title>Re: Balancing Personal and Professional Development Projects</title><link>http://andygirvan.com/2011/04/balancing-personal-and-professional-development-projects/#comment-187635951</link><description>I finally read it! And even though you make me out to be the demanding, distracting other half, I love this post! Just remember who did your graphics, eh?! x</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lauhug</dc:creator><pubDate>Tue, 19 Apr 2011 10:51:27 -0000</pubDate></item><item><title>Re: LA to NYC road trip done 4 minutes</title><link>http://andygirvan.com/2010/06/la-to-nyc-road-trip/#comment-139490230</link><description>Love it! Great video!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">www.markpeekrealestate.com</dc:creator><pubDate>Thu, 03 Feb 2011 07:26:43 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-135961972</link><description>Just discovered I could use a built-in cocos2d method: boundingBox&lt;br&gt;&lt;br&gt;So my whole collision detection code is:&lt;br&gt;	CGRect mouseRect = [mouse boundingBox];&lt;br&gt;	CGRect dogRect = [dog boundingBox];&lt;br&gt;			&lt;br&gt;			if (CGRectIntersectsRect(mouseRect, dogRect)) {&lt;br&gt;				//[fichiersToDelete addObject:fichier];		&lt;br&gt;				NSLog(@"Touché");&lt;br&gt;			}&lt;br&gt;&lt;br&gt;But in my case, many dogs are appearing and are in an NSMutableArray and I can't make my dog_ array work with this method. What am I forgetting?&lt;br&gt;&lt;br&gt;(And I am declaring my NSMutableArray with this in my header: 	NSMutableArray *dog_;  )</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M.Mac</dc:creator><pubDate>Fri, 28 Jan 2011 08:49:14 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-135727486</link><description>I did declare getBounds and I triple-checked my code for typos and copy-pasted yours (and changed the sprite names) and I still received the same error: &lt;br&gt;&lt;br&gt;Invalid initializer&lt;br&gt;&lt;br&gt;And player.m is importing player.h.&lt;br&gt;And gamescene.m is importing player.h&lt;br&gt;&lt;br&gt;Though, I found a "dirty" way to make it work, but I think this way of doing it would give me a lot of trouble if i decide to use a lot of sprites:&lt;br&gt;&lt;br&gt;&lt;br&gt;CGRect mouseRect   = CGRectMake(mouse.position.x, mouse.position.y, mouse.contentSize.width, mouse.contentSize.height);&lt;br&gt;	CGRect dogRect   = CGRectMake(dog.position.x, dog.position.y, dog.contentSize.width, dog.contentSize.height);&lt;br&gt;	if(CGRectIntersectsRect(mouseRect,dogRect)) {&lt;br&gt;		[[CCDirector sharedDirector] replaceScene:[GameOver scene]];&lt;br&gt;	}&lt;br&gt;&lt;br&gt;&lt;br&gt;This method works, but requires a lot (relatively) of coding for each sprite.&lt;br&gt;&lt;br&gt;I will now try to implement my technique in the getBounds method.&lt;br&gt;&lt;br&gt;But I still get the errors.&lt;br&gt;&lt;br&gt;Oh, and in the second code snippet in your tutorial, I think you forgot to add an  -  before (CGRect), I did "correct" this in my project because it gave me an error if I removed the  -. Do you think it is the cause of my issue?&lt;br&gt;&lt;br&gt;Thank you</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M.Mac</dc:creator><pubDate>Thu, 27 Jan 2011 20:08:38 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-135213681</link><description>Have you declared getBounds in your new class's header file. It should look something like:&lt;br&gt;"-(CGRect) getBounds"&lt;br&gt;&lt;br&gt;That means the method is properly declared and hopefully will be stop the errors throwing!&lt;br&gt;&lt;br&gt;Let me know how you get on with this :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Thu, 27 Jan 2011 04:20:44 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-134588420</link><description>OK, I wrote everything like you said, but I keep getting two errors, these 2 lines:&lt;br&gt;     CGRect mouseRect   = [mouse getBounds];&lt;br&gt;     CGRect dogRect = [dog getBounds];&lt;br&gt; &lt;br&gt;For each line the debugger says: &lt;br&gt;'CCSprite' may not respond to '-getBounds' &lt;br&gt;(Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.)&lt;br&gt;&lt;br&gt;And:&lt;br&gt;&lt;br&gt;Invalid initializer&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Who made the error? Me or you? Because I think I did everything right, and my sprites are initialized and everything..&lt;br&gt;&lt;br&gt;Can you help me?&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M.Mac</dc:creator><pubDate>Tue, 25 Jan 2011 20:52:41 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-124339382</link><description>hope it helped :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Wed, 05 Jan 2011 09:16:24 -0000</pubDate></item><item><title>Re: Ultima Online &amp;#8211; An Isometric Trip Down Memory Lane</title><link>http://andygirvan.com/2010/07/ultima-online-an-isometric-trip-down-memory-lane/#comment-119663304</link><description>Please bear with me as I take a trip down memory lane and share some of the best examples of games employing pre-rendered backgrounds with you.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LSAT Study Guide</dc:creator><pubDate>Mon, 27 Dec 2010 05:57:59 -0000</pubDate></item><item><title>Re: Simple Cocos2D Collision Detection</title><link>http://andygirvan.com/2011/01/simple-cocos2d-collision-detection/#comment-112172595</link><description>nice one man</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ZaldzBugz</dc:creator><pubDate>Wed, 15 Dec 2010 07:44:02 -0000</pubDate></item><item><title>Re: Adding custom post types to WordPress 3</title><link>http://andygirvan.com/2010/07/adding-custom-post-types-to-wordpress-3/#comment-88586689</link><description>Do you know how to include the podpress meta box in a custom post type?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PKGMULLET</dc:creator><pubDate>Wed, 20 Oct 2010 15:03:24 -0000</pubDate></item><item><title>Re: Ultima Online &amp;#8211; An Isometric Trip Down Memory Lane</title><link>http://andygirvan.com/2010/07/ultima-online-an-isometric-trip-down-memory-lane/#comment-88369049</link><description>I totally agree UO ruled. went down hill as soon as they introduced the NO PK universes</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Tue, 19 Oct 2010 19:49:42 -0000</pubDate></item><item><title>Re: Quick Tips &amp;#8211; jQuery: Giving your selectors some context</title><link>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/#comment-61852970</link><description>Additionally there is a great stackoverflow article about this: &lt;br&gt;&lt;br&gt;&lt;a href="http://stackoverflow.com/questions/2421782/performance-of-jquery-selector-with-context" rel="nofollow"&gt;http://stackoverflow.com/quest...&lt;/a&gt;&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Tue, 13 Jul 2010 06:57:13 -0000</pubDate></item><item><title>Re: Quick Tips &amp;#8211; jQuery: Giving your selectors some context</title><link>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/#comment-61850139</link><description>Actually there is a subtle difference. &lt;br&gt;&lt;br&gt;The way $('ul.menu li') would work would be to search through the DOM to find all list items within a located ul.menu. &lt;br&gt;&lt;br&gt;The other way of doing it - $('li','ul.menu') would only target the unordered list when performing the search.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Tue, 13 Jul 2010 06:13:31 -0000</pubDate></item><item><title>Re: Quick Tips &amp;#8211; jQuery: Giving your selectors some context</title><link>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/#comment-61843331</link><description>$('li','ul.menu'); is functionally equivalent to $('ul.menu li'); Far more useful, I find, are the is the ability to pass another jQuery object as the second parameter, e.g. the results from an earlier query, or a dom object, such as the document object of an external xml file retrieved from an ajax query.&lt;br&gt;&lt;br&gt;var menu = $('ul.menu');&lt;br&gt;$('li', menu);&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Seb</dc:creator><pubDate>Tue, 13 Jul 2010 04:31:31 -0000</pubDate></item><item><title>Re: Blog Zero</title><link>http://andygirvan.com/2010/05/blog-zero/#comment-60742742</link><description>Still going strong...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy G</dc:creator><pubDate>Tue, 06 Jul 2010 06:15:25 -0000</pubDate></item></channel></rss>
