Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collision between sprite and background(urgent)

 
Andrew Red
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!
How can I make the main character of the game (which is sprite) collides with the background.
My background is in tiled layer, and it's the one moving when the main character is in the center.
 
Puneet Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry need some info on sprites..is sprites midp1.0 technology???
could you please tell me how to use sprites.. in j2me. when i tried doing the same it said sprite class not found!!!
your help required.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sprite is a MIDP v2 class. But you can implement your own sprite object on top of MIDP v1 as described in this book.
 
Fred Grott
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andrew Red:
Hello everyone!
How can I make the main character of the game (which is sprite) collides with the background.
My background is in tiled layer, and it's the one moving when the main character is in the center.

it might be described in jason lams free midp2.0 book
http://www.jasonlam604.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic