• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collision between sprite and background(urgent)  RSS feed

 
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.
 
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.
 
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.
 
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
 
No more fooling around. Read this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!