Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • 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
 
Whatever. Here's a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!