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 05-20-2011, 08:37 PM   #1 (permalink)
The New Guy
 
Join Date: Jul 2010
Location: Toronto, Canada
Posts: 5
Picabloo is on a distinguished road
Question Make sprites follow a predefined line or curve

Say I want to have sprites appear and then follow either a line path or a circular path, how would I go about doing that?

For my game, I need sprites to randomly appear and then follow paths. Any suggestions? Using anything (or the most efficient). Thanks!
Picabloo is offline   Reply With Quote
Old 06-17-2011, 12:30 AM   #2 (permalink)
The New Guy
 
Join Date: Jul 2010
Location: Toronto, Canada
Posts: 5
Picabloo is on a distinguished road
Default

Quote:
Originally Posted by Picabloo View Post
Say I want to have sprites appear and then follow either a line path or a circular path, how would I go about doing that?

For my game, I need sprites to randomly appear and then follow paths. Any suggestions? Using anything (or the most efficient). Thanks!
bump
Picabloo is offline   Reply With Quote
Old 06-17-2011, 05:29 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Sweden
Posts: 28
Slade is on a distinguished road
Default

Making a sprite follow a line path should be fairly simple, you just need a start position and an end position. Each new frame should move the sprite a little closer to itīs final position.

I could help you further if you give me an example of your drawing code.
Slade is offline   Reply With Quote
Reply

Bookmarks

Tags
line, path, random, sprite, straight

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: 424
7 members and 417 guests
AppleDev, chemistry, Emy, hussain1982, mistergreen2011, Retouchable, skrew88
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:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0