This site requires JavaScript, please enable it in your browser!
Greenfoot back
LilCh4rDi95
LilCh4rDi95 wrote ...

2012/12/3

Help with collisions

LilCh4rDi95 LilCh4rDi95

2012/12/3

#
I am Making a Game where if the character reaches the house he doesn't go through it i have searched the internet but have found no help. please could someone help me as i am new to codeing
danpost danpost

2012/12/3

#
Is the house in question an Actor object or something that is part of the world background image? I probably will not be around to respond again, so your next post should be open for all (or any) to respond. Also, what do you mean by 'through it' (referring to the actor going through the house)?
LilCh4rDi95 LilCh4rDi95

2012/12/4

#
The house is a actor and so is the character and i want the character to stop moving when he hits the house.
danpost danpost

2012/12/4

#
What is wrong with basic collision detection with 'getOneIntersectingObject' (or 'getIntersectingObjects') - move the actor - if intersects, move the actor back
LilCh4rDi95 LilCh4rDi95

2012/12/5

#
I don't know how to use it.
danpost danpost

2012/12/5

#
Are you using 'move' or 'setLocation'? How do you determine direction of movement? What are the classes involved? Plus others. It is very hard to help when there is no starting code to begin with. Nobody has any idea as to how you coded anything, and therefore will not be able to resolve your issue without much deliberation.
LilCh4rDi95 LilCh4rDi95

2012/12/7

#
Sorry i've been away for a while but i've figured it out thanks for the help though.
LilCh4rDi95 LilCh4rDi95

2012/12/7

#
Sorry i've been away for a while but i've figured it out thanks for the help though.
brij.pat brij.pat

2012/12/14

#
you should upload that game here!!!
ddavid33 ddavid33

2012/12/16

#
@LilCh4rDi95 could you post up what u done to solve the problem please.
You need to login to post a reply.