<?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>http://andygirvanblog.disqus.com/</link><description></description><atom:link href="https://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>&lt;p&gt;Thanks, I hope it helps you out :)&lt;/p&gt;</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>&lt;p&gt;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).&lt;/p&gt;</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>&lt;p&gt;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&lt;/p&gt;</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>&lt;p&gt;Love it! Great video! &lt;/p&gt;</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>&lt;p&gt;Just discovered I could use a built-in cocos2d method: boundingBox&lt;/p&gt;&lt;p&gt;So my whole collision detection code is:&lt;br&gt;	CGRect mouseRect = [mouse boundingBox];&lt;br&gt;	CGRect dogRect = [dog boundingBox];&lt;/p&gt;&lt;p&gt;			if (CGRectIntersectsRect(mouseRect, dogRect)) {&lt;br&gt;				//[fichiersToDelete addObject:fichier];		&lt;br&gt;				NSLog(@"Touché");&lt;br&gt;			}&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;(And I am declaring my NSMutableArray with this in my header: 	NSMutableArray *dog_;  )&lt;/p&gt;</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>&lt;p&gt;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;/p&gt;&lt;p&gt;Invalid initializer&lt;/p&gt;&lt;p&gt;And player.m is importing player.h.&lt;br&gt;And gamescene.m is importing player.h&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;This method works, but requires a lot (relatively) of coding for each sprite.&lt;/p&gt;&lt;p&gt;I will now try to implement my technique in the getBounds method.&lt;/p&gt;&lt;p&gt;But I still get the errors.&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</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>&lt;p&gt;Have you declared getBounds in your new class's header file. It should look something like:&lt;br&gt;"-(CGRect) getBounds"&lt;/p&gt;&lt;p&gt;That means the method is properly declared and hopefully will be stop the errors throwing!&lt;/p&gt;&lt;p&gt;Let me know how you get on with this :)&lt;/p&gt;</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>&lt;p&gt;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;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;And:&lt;/p&gt;&lt;p&gt;Invalid initializer&lt;/p&gt;&lt;p&gt;Who made the error? Me or you? Because I think I did everything right, and my sprites are initialized and everything..&lt;/p&gt;&lt;p&gt;Can you help me?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&lt;/p&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>&lt;p&gt;hope it helped :)&lt;/p&gt;</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>&lt;p&gt;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. &lt;/p&gt;</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>&lt;p&gt;nice one man&lt;/p&gt;</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>&lt;p&gt;Do you know how to include the podpress meta box in a custom post type?&lt;/p&gt;</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>&lt;p&gt;I totally agree UO ruled. went down hill as soon as they introduced the NO PK universes&lt;/p&gt;</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>&lt;p&gt;Additionally there is a great stackoverflow article about this:&lt;/p&gt;&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/2421782/performance-of-jquery-selector-with-context" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/2421782/performance-of-jquery-selector-with-context"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;br&gt;&lt;/p&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>&lt;p&gt;Actually there is a subtle difference.&lt;/p&gt;&lt;p&gt;The way $('&lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt; li') would work would be to search through the DOM to find all list items within a located &lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;The other way of doing it - $('li','&lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt;') would only target the unordered list when performing the search.&lt;/p&gt;</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>&lt;p&gt;$('li','&lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt;'); is functionally equivalent to $('&lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt; 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;/p&gt;&lt;p&gt;var menu = $('&lt;a href="http://ul.menu" rel="nofollow noopener" target="_blank" title="ul.menu"&gt;ul.menu&lt;/a&gt;');&lt;br&gt;$('li', menu);&lt;br&gt;&lt;/p&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>&lt;p&gt;Still going strong...&lt;/p&gt;</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>