0
$\begingroup$

I´m messing around with BGE and have some troubles on the way, but it's fun.

The game I'm making is a bomberman like game, i made the logics and scripts so it works and it place the bomb quite fine, but for some reason it always places 2 bombs no matter what, can anyone see what i might have done wrong?

enter image description here enter image description here enter image description here

YES THATS IT /// SOLUTION IS

I had to change the logic Property (called placebomb) Evaluation Type to "Greater Than" from "Equal To" because the "Equal To" pulse always twice for some reason i can't explain.

enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

The script is triggered twice. On positive and negative pulse of the sensor. Check if the sensor triggering the script is positive: How to ask Python if a sensor is activated, BGE?

$\endgroup$
2
  • $\begingroup$ You are absolutely right about that :) one step closer. But why is the script trigger on negative pulse xD that don't really make sense to me. $\endgroup$
    – D1ll1ng
    Commented Feb 20, 2018 at 18:43
  • $\begingroup$ Its solved, thank you very much :) have nice day $\endgroup$
    – D1ll1ng
    Commented Feb 20, 2018 at 19:14

You must log in to answer this question.

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