Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

33 users online



Java collision Detection

Java collision Detection

Currently viewing this thread: 1 (0 members and 1 guests)


Err0r

Err0r

Status: Offline!

Java collision Detection

i need a way to check to see if images collide at certain x and y points anyone know an easy way to make this. it is for an RPG game i am trying to make

Code:


X1,y1 +-------+ X4,y4
|.......|
|.......|
X2,y2 +-------+ X3,y3


i need it to check to see if something goes into the box so i can make it so my characters cant just walk over huge boulders

Jeremy

___________________

Signature Suspended as it is in violation with the signature rules

Last edited by Err0r, November 20th, 2003 03:19 PM (Edited 1 times)

EEDOK

EEDOK

Status: Offline!

Make an array of tiles, and have values to tell if the tile is walkable or not walkable, then divide your characters position relative to the tile, and you should have a simple collision detection routine..

___________________

http://www.voidofmind.com/eedok/sig/display3.php
sign the sig - condensed version

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0158 seconds.