0 Favourites

Bullet problem better explained

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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.

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
98 7,599
norum82's avatar
norum82
Unread hot topic
87 5,378
facecjf's avatar
facecjf
Unread hot topic
57 53,177
weilies's avatar
weilies