Page 1 of 1

HitBox of items

Posted: Fri Feb 13, 2015 11:51 am
by Maltasparks
Hi,
How can i make a hitbox of some items and objects? example, i have a tree that is randomly spawned in the 5000x5000 pixel world, the world is 2d but you can move up, down, left, right, just like an mmo. So when the character comes near a tree, the tree would block him and he needs to go around it.
Thanks

Re: HitBox of items

Posted: Fri Feb 13, 2015 11:57 am
by Doctory
try bump by kikito. it is really simple to use and works flawlessly.
theres an example here to get you started.

Re: HitBox of items

Posted: Fri Feb 13, 2015 6:02 pm
by s-ol
This is called collision detection. There are tutorials on the wiki, tutorials in the forum, libraries on the wiki, libraries on the forum and questions on the forum. Please put some effort into searching for something as common as this before starting a thread and waiting for people to give you the answer you would literally find in less than 10 minutes on your own.