You Are Here:

Community: Developer Discussion Boards

#1 Old Bounds Checking in TileBased game - 2009-02-25, 08:14

Join Date: Dec 2008
Posts: 2
shaanu786's Avatar
shaanu786
Offline
Registered User
Hello, can someone help me. Tell me how we check the bounds in a tile based game. I mean when a player moves left, right,up ,down according to a given path. So how we check when and where player has to move or not.If someone have demo for it plz share me


Thanks


With Regards
Ahmad
J2ME Mobile Software Developer
Reply With Quote

#2 Old Re: Bounds Checking in TileBased game - 2009-02-25, 19:39

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
Hi,

This can be done by checking collision of the image boundaries. There are specific methods available in tilelayer and also in sprites
There are a number of articles available in the net and also in forum nokia.

following link is an example.
http://www.apress.com/resource/bookfile/1742

http://www.comp.nus.edu.sg/~cs4344/0607s1/mobile/l3.pdf


Regards,
Wang
Reply With Quote

#3 Old Re: Bounds Checking in TileBased game - 2009-02-27, 12:13

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi AHMAD,

if you're using Sprites (from javax.microedition.lcdui.game.Sprite) in your game, then you can use its collidesWith() methods to check for collisions with other Image/Sprite/TiledLayer instances.

Pit


www.jappit.com - mobile and web blog
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot create sis package? gomcoite Themes/Carbide.ui 4 2008-09-27 18:54
Error in packaging process :( a-eqla3 Themes/Carbide.ui 2 2008-07-30 23:03
Error in packaging process :( a-eqla3 Carbide.c++ IDE and plug-ins 1 2008-07-24 21:33
ERROR IN CREATING THEME ssmantri Themes/Carbide.ui 5 2008-05-29 21:58
Great game Wappo geonofear News, Announcements and Job Listings 2 2007-01-03 13:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ