Bullet problem better explained

0 favourites
  • 3 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • Hey all. I have bow and arrow. When you aim ,,,,,the bullet for the arrow is disabled, when you release the bowstring , bullet is activated and arrow fly and hit wall , get pinned to the wall. And bullet is disabled again so the arrow doesnt move when pinned to wall. When you wanna shot another arrow , the bullet will get enabled again for the new arrow, but it also enables it for the arrow that is already pinned to the wall, this means that the arrow pinned start moving and creates new colision events which mess up my score which counts colision detection. Hope you understand. So what i need is to enable bullet for each new arrow , but wont let the bullet to be enabled mess with the arrows already pinned to wall.

  • You shouldn't start another thread for the same issue. The first one had the sample on it which is necessary to debug this. You need to keep track of your current arrow. Make a Global variable and set it when you spawn the arrow. Then 'Pick by UID' in the 'On touch end' to pick just that one arrow. The default is to pick all.

    You could also give the bow an instance variable instead, if there are multiple bows possible.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • solved , thanks a lot, ,sorry for making another thread, this was the only thing breaking everything in the game , sorry and thank you

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)