0
$\begingroup$

Help me please I need to pass this work tomorrow

What's wrong with my work? I want that if the character collides with the obs or walls the game would restart but somehow it's not working. Here is the file : http://www.pasteall.org/blend/37842

$\endgroup$

1 Answer 1

0
$\begingroup$

It seems the only way the player collides with the walls is because go that small white box. You could either get rid of the box and just use the character, or stretch the box upwards so it collides with the walls on top too, although this may be unnecessary.

To make the restarting game properly work, you the game property called 'obs' should be set to boolean and 'True'. Also, delete the sensor for the collision with the property of 'prop'. enter image description here enter image description here

$\endgroup$
3
  • $\begingroup$ Should I really delete the sensor with 'props'? I some of the walls obs and I got lazy so I just press add game property to the rest. And thank you for the response :) I'll try if it will work. $\endgroup$
    – Kyouma
    Sep 3, 2015 at 16:34
  • $\begingroup$ Yeah, I deleted that 'prop' sensor and then changed the obs to boolean true and it worked fine! :) $\endgroup$
    – Jacob_
    Sep 3, 2015 at 17:17
  • $\begingroup$ Another way round it, without having to delete the sensor with 'props' would be to replace the 'and' controller for an 'or' controller. This is because what it was doing with your blend file is restarting the game if it was colliding with the 'obs' property AND 'prop' property, which isn't what you wanted $\endgroup$
    – Jacob_
    Sep 3, 2015 at 18:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .