User Tag List

Results 1 to 10 of 10

Thread: Bullet not hitting object? :/

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Bullet not hitting object? :/

    Ok so i have a gun that shoots a bullet at the object. When the bullet collides with the object X is happening. The problem is that if i have more speed then about 500 on the bullet it seems like most bullet dont hit the object? I have tried to have speed 500 and then the condition happens every time. But if i increase it to about 2000 to have it fly as fast as a bullet it almost never happens.. what should i do? I cant have the bullet fly at a snails speed..

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    Your bullet is probably going past your target so it actually never overlaps the target at any frame. This means it will never detect a collision. You need to not think so literally. There are many methods you could try if you want to not really see a bullet (like in real life). One would be to create and move a single bullet in a fastloop so you can have it move in shorter increments per loop and be able to check if it overlaps anything.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    Quote Originally Posted by mobichan
    Your bullet is probably going past your target so it actually never overlaps the target at any frame. This means it will never detect a collision. You need to not think so literally. There are many methods you could try if you want to not really see a bullet (like in real life). One would be to create and move a single bullet in a fastloop so you can have it move in shorter increments per loop and be able to check if it overlaps anything.
    Hmm.. is there any explenation or tutorial on how to do this?

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    I would suggest reading DavidN's tutorial on making a Platform Engine. It contains basics on how to move an object using a fastloop. It is also in the tutorials section on the right side of this forum page. Once you understand what he does to move an object, you can expand on that concept and make what you are asking about. You will also be able to sever some ties to the built in movement types.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    Quote Originally Posted by mobichan
    I would suggest reading DavidN's tutorial on making a Platform Engine. It contains basics on how to move an object using a fastloop. It is also in the tutorials section on the right side of this forum page. Once you understand what he does to move an object, you can expand on that concept and make what you are asking about. You will also be able to sever some ties to the built in movement types.
    Or you could explain it But thanks I am following the tutorials by order, but that one is really far down in the advanced section, i dont know if i will be able to follow it yet?

  6. #6
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    could you post your file up on the boards? maybe someone can help you and explain how the coding works in the process :cool:

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    Quote Originally Posted by Warmachine
    could you post your file up on the boards? maybe someone can help you and explain how the coding works in the process :cool:
    I dont think thats necessary? I have a gun, it shoots a bullet at the mousepointer when i click the button. The thing i want is to have the bullet actually hit the object that comes in its way Not fly right through it because the speed of the bullet is to high :P

  8. #8
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    unless you already have tried this, check the order of the bullet. If you dont have it to the front, bring it to the front and see if that works.

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    @Outcast: MMF makes things easy, but it also allows you alot of flexibility in how you approach things. Since we can't read your mind, you need to give a clear description of your events/process or you need to provide a sample file for us to look at. And it is pretty pointless for me to explain fastloop movement when there is a tutorial that teaches the basics of using it (and is a lot more eloquent at it than I am).

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet not hitting object? :/

    Quote Originally Posted by mobichan
    @Outcast: MMF makes things easy, but it also allows you alot of flexibility in how you approach things. Since we can't read your mind, you need to give a clear description of your events/process or you need to provide a sample file for us to look at. And it is pretty pointless for me to explain fastloop movement when there is a tutorial that teaches the basics of using it (and is a lot more eloquent at it than I am).
    But i tought it seemed like it was a common thing that fast objects could pass through other object witout regestering a hit. I just wanted to know the way around that problem.

    My even process is just when mouse is pressed a bullet shoots from rifle toward mousepointer. When bullet hits enemie enemie gets destroyed. But when i speed up the bullet so it flyes faster it wont hit, or hit very rarely.

Similar Threads

  1. If bullet overlaps a certain object, damage the shooter of the bullet
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th September 2012, 02:43 PM
  2. Lightning initiating from an object and hitting another object
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th June 2012, 01:58 PM
  3. The player is hitting things that aren't there?
    By LemonyLime in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 6th October 2011, 04:37 PM
  4. Looking for: Bullet & Particle Object
    By dub in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th October 2008, 11:11 PM
  5. Beam Hitting Multiple Enemies
    By Docilemouse in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th August 2008, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •