1. #11
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Gun Game

    Originally Posted by Hazard
    i made the bullet on loop so i think the bubble should auto spawn back with the bullet right? thanks guys why didnt i just do this in the first place, not rocket science xD
    yeah it will follow it to the ends of the world.

    edit: im under the impression that you're OPE the bullet, make sure physics are on and i would make the target really thick to stop it teleporting past, could use custom collision cylinder shape.
    Share this post

  2. #12
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Gun Game

    Originally Posted by sparkierjonesz
    Originally Posted by Jarr3tt88
    Originally Posted by dasraiser
    make the bullet the game object so the bubble follows it
    What if theres multiple bullets you need it to follow?
    game event lets you change the object the bubble follows
    Yea but if theres two bullets out there and they both need to have physics, and they aren't near each other???????
    Share this post

  3. #13
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Gun Game

    if thats the case jarr, i'd go with summing the positions of the bullets and then averaging that so the dummy object for the bubble was at the center of all of them
    Share this post

  4. #14

    Re: Gun Game

    im using you OPE though would that still activate the hit trigger when the bullet hits the target
    Share this post

  5. #15
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Gun Game

    it would if it hits or is inside the object, OPE just teleports the object so if its moving fast it could technically pass either side of your hit target without any triggering, hence make it really thick or has a lot of depth.
    Share this post

  6. #16
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Gun Game

    if you didn't want to use hit triggers you could generic filter test the position of the bullet against the position of the target, this would make your game more flexible in terms of bullet counts and distance, but if your firing one bullet then there's no real need.
    Share this post

  7. #17

    Re: Gun Game

    so i would have to setup the end of the bullet so that it doesnt go past the target. okie dokie cheers
    Share this post

  8. #18
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Gun Game

    or just make the target have really deep edges.
    Share this post

  9. #19

    Re: Gun Game

    hmm well came across another problem, when i test the bullet it will go all the way and hit the target.. but when i go and test track properly the bullet stops mid air but only going half way
    Share this post

  10. #20

    Re: Gun Game

    Problem solved thanks for the help guys
    Share this post