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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-29-2008, 06:41 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 107
Default Move an image to where I touch

I have an animation for an image and I want to animate the image to move whereever I tap. Like on a castle defender game. when you press somewhere it shoots to that path and then through...

I wanna have it go to where I tap and then restart where originally at..

Please help
JoshuaCaputo is offline   Reply With Quote
Old 08-29-2008, 07:57 PM   #2 (permalink)
1026 Development
 
Join Date: Jul 2008
Age: 23
Posts: 1,088
Send a message via AIM to Jeremy1026
Default

You will have to use cgaffine.translate from the Core Graphics framework. You will then also need to find the location of the touch, check the Apple sample code on 'Touches' to learn how to do this. It is actually a rather simple thing to do, just take a peak at the sample code
Jeremy1026 is offline   Reply With Quote
Old 08-29-2008, 08:33 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 107
Default

How do I make the touched coordinates the destination>?
JoshuaCaputo is offline   Reply With Quote
Old 08-30-2008, 07:35 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 84
Default

Look at the MoveMe sample, it does exactly what you are trying to do.
indiekiduk is offline   Reply With Quote
Old 10-02-2008, 02:15 PM   #5 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 75
Default

I am a example of this

Multiple Objects and UITouch : Iphone Noob
__________________
Iphone Noob iPhone Development Blog. Learn to develop for the iPhone SDK with me
hijinks 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: 462
12 members and 450 guests
clerisysolutions, dana0550, dapis, darbsllim, dre, Harolano, Hyde, lbert, leesdesjardins, marshusensei, Objective Zero, RickSDK
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 157,851
Threads: 88,914
Posts: 379,294
Top Poster: BrianSlick (7,072)
Welcome to our newest member, darbsllim
Powered by vBadvanced CMPS v3.1.0

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