Actor independence
JlmC
Member Posts: 129
Hello,
This is my problem.
I set my actor(called BOX) everytime it gets destroyed get a random number. If the number is under 20, drop an object. However, every BOX in my screen drop the same object, i just want to drop a object only when A box is destroyed
thanks
This is my problem.
I set my actor(called BOX) everytime it gets destroyed get a random number. If the number is under 20, drop an object. However, every BOX in my screen drop the same object, i just want to drop a object only when A box is destroyed
thanks
Comments
game.drop = 0
when box is desroyed generate a number between 0 to 100
if number is below 20
spawn an actor
self.drop=0
im going to try it later