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

View Single Post
Old 02-15-2010, 11:14 AM   #49 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

I'm still suspect of this line:
Code:
ySpeed += 0;

//which is the same as 
ySpeed = ySpeed +0;

//which is the same as
//ySpeed = ySpeed;
Which is the same as doing nothing. Whatever that section is supposed to do is not getting done.

Also in characterJump you copy jumpCounter into the local variable setter make some changes and then copy it back; that seems needlessly confusing when you can just use jumpCounter.

I doubt that either for these are the root of your problem; you really need to use breakpoints or NSLogs to figure out what your code is really doing, and how it's different than what you want.

For example: He cannot jump whilst standing on a block. Why not? Does characterJump not get called, or does characterJump not work properly when on a block? If it's not called, why not etc. etc.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 787
20 members and 767 guests
7twenty7, alexeir, antonwilliams, AppAnnex, Clouds, daarshg, dansparrow, haihung_kt, Hannibal2010, manop_cs, mishti, mwyld, policy1, raymng, Robiwan, shellytf96, Sophie100, Trixlean2012, upultharanga685, ziocleto
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,477
Threads: 94,040
Posts: 402,626
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Trixlean2012
Powered by vBadvanced CMPS v3.1.0

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