Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 04-21-2011, 05:20 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 30
vetji is on a distinguished road
Question Adding enemies in a game

Hey guys!

I made game quite like papi jump and i have looked all over the net and i cant find a tutorial how to add enemies to your game...
If anyone know how to do it i would be happy if you shared it with me
vetji is offline   Reply With Quote
Old 04-23-2011, 05:57 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 30
vetji is on a distinguished road
Default Pmub

B
BU
BUM
BUMP
BUM
BU
B
vetji is offline   Reply With Quote
Old 04-25-2011, 09:57 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 30
vetji is on a distinguished road
Question 0773H

H3770
vetji is offline   Reply With Quote
Old 04-25-2011, 01:25 PM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

there isn't a tutorial so specific, and however "enemy" is just an image.

My advice for you is to start with cocos2d, in particular from this tutorial
How To Make A Simple iPhone Game with Cocos2D Tutorial | Ray Wenderlich

take a look also to the others tutorial on that site.
__________________
dany_dev is offline   Reply With Quote
Old 02-28-2012, 03:34 AM   #5 (permalink)
Registered Member
 
Join Date: Feb 2012
Posts: 33
iCLSn0w is on a distinguished road
Default

Hello, vetji,
You want add enemy on your "papijump" game ?
you do as platforms, you created a macro kStatsGameOver and you write that :

if (CGRectIntersectsRect(ball.frame, malus.frame))
{
if (ball.center.y + 8 < malus.center.y)
{
if (ballVelocity.y > 0) {
ballVelocity.y = -kStateGameOver;
GameOverCompletedTilt *controller = [[GameOverCompletedTilt alloc] initWithNibName:@"GameOverCompletedTilt" bundle:nil];
[self presentModalViewController:controller animated:NO];
[controller release];
}
}
iCLSn0w is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0