Making a simple iPhone game, Part 4
Uploader Comments (TheEagle1100)
All Comments (40)
-
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?
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.frame, platform1.frame))"
I really don't know whats wrong. If you have any suggestions please let me know. Thanks for the tutorial.
mrbrad0022 1 year ago
@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.
TheEagle1100 1 year ago
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 1 year ago
@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.
TheEagle1100 1 year ago
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 1 year ago
@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.
TheEagle1100 1 year ago