Page 1 of 1

Carrying Objects?

PostPosted: Mon Aug 29, 2005 11:56 am
by Novice
Hello im new in GE and im making a simple game about stacking books and stuff. I made my actor catch the book and drop it, but the problem is that i cant make the hitbox. So whenever i press space no mather where my charcter is he picks up the book and it apears in his hand. I tried using change parent, and script to limt the hit box to x +-3 but i cant make it work, pls help. Thx. :)

P.S. I would insert an image but i dont know how. :roll:

PostPosted: Mon Aug 29, 2005 3:10 pm
by makslane
You can makethis:
1) Create a variable canPick
2) On Collision with the hit actor: canPick = 1;
3) On Collision Finish with the hit actor: canPick = 0;
4) In the Key Down event:
if(canPick)
{
//Pick the book here
}

PostPosted: Mon Aug 29, 2005 5:27 pm
by Novice
Thanks il try this out.