Making a simple iPhone game, Part 4

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,820
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 10, 2010

This is part 4 in my tutorial series. In this tutorial I will show you how to add touch support and the the ball bouncing.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (TheEagle1100)

  • I have all the code up to this point as you have typed it but I'm stuck with one error:

    Undefined symbols: "_CGRectIntersectsRect", referenced from: -[testgame_ballViewController gameStatePlayNormal] in testgame_ballViewController.o

    "

    "

    "

    ld: symbol(s) not found

    collect2: ld returned 1 exit status

    I have typed that line as: "if (CGRectIntersectsRect(ball.fra­me, platform1.frame))"

    I really don't know whats wrong. If you have any suggestions please let me know. Thanks for the tutorial.

  • @mrbrad0022 I don't know what's wrong from that information... Check to make sure that you have the correct brackets everywhere. You might be missing a bracket in the function above the one that is giving an error.

  • Yea sorry I relized I was missing a bracket.. Sorry! I got up to part 6 and the only way I could make it work was if I looked around and put parts in different places but now when try to make the platforms come back after moving off the screen it won't work so if you could send me the whole code up to part 4 that would be great!! One question.. PM? What that?

  • @connorord92

    PM = Private message. Click on my user name and press 'send message'. That way you can give me your email without giving it to the whole world.

  • I've tried to make the last step work but it keeps telling me that IM doing something wrong.. Can you go back a make sure you didn't type something and forget to show it to us?

  • @connorord92

    I didn't spell anything wrong. The video isn't edited. If you PM me your email address I'll send you the source code.

see all

All Comments (40)

Sign In or Sign Up now to post a comment!
  • Why is it ball.center.y + 8? I assume 8 isn't just an arbitrary number right?

  • hey i have a question, i want to move a picture in my project, its like yours only without jumping, but if i try your velocity-code it doesn't work :(

    can you help me?

  • Hey how do you make it change the x velocity when you tilt the device?

  • @XeniteJB dude im getting the same error how did you solve it

  • @mrbrad0022 just continue with the video. i had the same problem but eagle1100 solves it right after that part...

  • @Hatrickjoe Make sure that all brackets before and after touchesBegan are in place, it may even be as simple as a missing semicolon. You can message me if you have any more questions.

  • @shenreice same message me if you find a solution

  • Im getting an "Unideclared Identifire" error on touchesBegan is there any code that declares that in the viewcontroller.m?

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