MEMORIAL DAY SALE: Save 15% on ALL BlackBerry Accessories! Use Coupon Code MEM12.
Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 06-22-2009, 02:19 AM
CrackBerry Newbie
Device(s): Not a BlackBerry/Smartphone User
 
Join Date: May 2009
Posts: 2
Likes Received: 0
Thanked 0 Times in 0 Posts
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 Tip this Post
  #2  
Old 06-22-2009, 12:12 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: Vodafone UK
 
Location: Scotland
Join Date: Jun 2009
Posts: 338
Likes Received: 11
Thanked 12 Times in 6 Posts
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.
__________________

Support: JavaCafe UK - Support

Twitter: @JavaCafeUK
Reply With Quote Tip this Post
  #3  
Old 06-22-2009, 04:32 PM
CrackBerry User
Device(s): 9530 (Storm)
Carrier: Verizon
 
Join Date: Mar 2009
Posts: 14
Likes Received: 0
Thanked 0 Times in 0 Posts
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 Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Sprite to Sprite collision problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes