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

View Single Post
Old 02-08-2010, 09:08 PM   #8 (permalink)
imrnm245
Registered Member
 
Join Date: Feb 2010
Posts: 8
Default

i ran into another problem also. In the code below i have initialized 3 platforms, and this code works, but i want to add a special feature to the case 2 platform. I want to make an if statement saying that if my sprite touches it, the sprite's velocity will be different, but i tried all the ways i can think of and have no idea how to continue.

- (void)initPlatform {

CGRect rect;
switch(random()%3) {
case 0: rect = CGRectMake(633,83,64,13); break;
case 1: rect = CGRectMake(633,139,65,14); break;
case 2: rect = CGRectMake(725,80,78,16); break;



}
imrnm245 is offline   Reply With Quote
 

» Advertisements
» Online Users: 355
17 members and 338 guests
ADY, BrianSlick, dacapo, fiftysixty, john love, Joseph Nardone, ligerligerliger, mizzytheboy, nobre84, oztemel, poisenden, Sunny46, syver, themathminister, TheWebWizz, XRumerTest
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,701
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:35 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.