User Tag List

Results 1 to 3 of 3

Thread: Problem with 360 degree aiming.

  1. #1
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with 360 degree aiming.

    Hey, it's been a while since I was on these forums. Anyways, I was working on a remake of my game Survival Space (On Gamebuilder.info) and I'm having some trouble with aiming. Aiming while still is fine, but when I move and shoot, the bullets don't go where I want them to. This game is still very much incomplete so please ignore the incomplete stuff.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with 360 degree aiming.

    I'm pretty sure it's only because you ship is moving that the bullets look odd, and they're actually moving as they're supposed to. I think it's a problem with relative velocities.

    So to make it look how you want it to, I think you need to add the ship's velocity to the velocity of the bullets. When you shoot a bullet, set the bullet's X speed to the Ship's current X speed + the speed of the bullet. Do the same for the Y speed.

    Real life example: If you are in a car going east at 60km/h and you throw a ball at 20km/h east then the ball will go at 80km/h east.

    The effect isn't noticeable in many games where bullets move much faster than the characters, however the ship moves so fast in your game that you can see a noticeable difference and in fact are able to move faster than the bullets in some situations.

  3. #3
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with 360 degree aiming.

    Oh thanks that works!

Similar Threads

  1. Aiming target
    By MdNelson in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th September 2013, 12:16 PM
  2. Turret aiming and shooting problem
    By Fishmonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st January 2012, 10:33 AM
  3. Java+360 aiming
    By Watermelon786 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th March 2010, 11:42 PM
  4. [Problem] 360 degree with platform movement?
    By JonathanC in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 16th July 2008, 09:32 AM
  5. Mouse aiming help
    By Codemonkey in forum File Archive
    Replies: 4
    Last Post: 20th May 2008, 07:50 AM

Posting Permissions

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