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 Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-03-2011, 03:42 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 1
FatPlormer is on a distinguished road
Default Side scroll platformer - enemy control

Hi All

I've got a side scroll platform game underway and have animated main player walking all round the map and I thought I should look at enemies next.

I'm stuck on the logic of how to handle them. Each level is around 8 screens wide in landscape and will have at least 1 enemy per full screen.

I'm unsure if I should update the position and render them all even if they are not in active view? I guess that is the easiest way as I don't need to calculate where I am in the map to decide which ones to update, but I'm unsure if that is the best way ?

Any help / sample code would be appreciated.

I'm scrolling the tileMap when the player is in the middle of the screen.

Thanks
FP
FatPlormer 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
» Online Users: 431
7 members and 424 guests
chemistry, Emy, hussain1982, mistergreen2011, Retouchable, skrew88, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,922
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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