Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Developer's Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2009, 04:19 AM
CrackBerry Newbie
Device Model: Not a BlackBerry/Smartphone User
 
Join Date: May 2009
Posts: 2
Default Sprite to Sprite collision problem

Hi All,

I am facing a problem while the implementation of Collideswith method.
The collision has detected far before the meeting point of two sprites. Why it happens in BlackBerry device and plzz let me know if there is any solution.

In Waits.. !!
Sonal
Reply With Quote
  #2  
Old 06-22-2009, 02:12 PM
geeneeus's Avatar
CrackBerry Abuser
Device Model: 9700 (Bold)
Carrier: Vodafone
 
Join Date: Jun 2009
Location: Scotland
Posts: 275
Default

What are you using to develop with?

Also if its okay with yourself posting the code for said method may help debug the issue.
__________________
GeeNeeUs geeneeus@crackberry.com
Reply With Quote
  #3  
Old 06-22-2009, 06:32 PM
CrackBerry User
Device Model: 9530 (Storm)
Carrier: Verizon
 
Join Date: Mar 2009
Posts: 14
Default

Quote:
Originally Posted by thinkworld View Post
Hi All,

I am facing a problem while the implementation of Collideswith method.
The collision has detected far before the meeting point of two sprites. Why it happens in BlackBerry device and plzz let me know if there is any solution.
I assume you're using the collidesWith(Sprite s, boolean pixelLevel) overload? If so, have you set pixelLevel to true? If it's false, you'll only get simple bounds checking (meaning even if there are transparent pixels, you'll still get a collision detection).
__________________
Patrick Steele
ColorFILL! Author (Flood-it clone for Blackberry Storm)
ColorFILL! OTA Download
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



 
 Site Support | Accessory Order Support | App Store Support | Advertise | Newsletter | About Us

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

The names RIM and BlackBerry are registered Trademarks of Research in Motion Limited.
CrackBerry.com is in No Way Affiliated with Research in Motion Limited.
Copyright ©2007-2009 Smartphone Experts. Terms and Conditions. Privacy Policy. All rights reserved.