Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 18, 2013 10:49 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jul 21, 2012 1:43 pm 
Offline

Joined: Tue May 22, 2012 8:24 pm
Posts: 49
I have an Animation player. I want to check if he is colliding with Tiles.

How should I check if he's colliding, I have no idea how to do that... I could maybe make a rectangle, that covers my player, and see if it's intersecting with Tile, but how to do that also ?

Please help me...


Top
 Profile  
 
PostPosted: Wed Aug 01, 2012 5:35 pm 
Offline
User avatar

Joined: Mon Jul 30, 2012 11:36 pm
Posts: 4
Location: Minnesota, United States
First, check out this tutorial: http://slick.cokeandcode.com/wiki/doku. ... collisions

Then, read this thread: viewtopic.php?f=3&t=5301&p=30015#p30015

The tutorial is great, except for one method that doesn't seem to work very well. In the thread, I suggest a way to change this method so that it works.

_________________
-Michael


Top
 Profile  
 
PostPosted: Fri Aug 03, 2012 10:40 pm 
Offline

Joined: Tue May 22, 2012 8:24 pm
Posts: 49
The problem is that I don't use that TiledMap class, for my tiles I'm using simple 48 * 48 pixel image, sampling pixels and store tiles in tile array, based on color of the pixel... I'm trying to make collisions now, but the only way I managed to do it is via color checking.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group