User Tag List

Results 1 to 10 of 10

Thread: Shoot an object backwards?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shoot an object backwards?

    Another case of something I can't do in my Star Control clone - I'd like to be able to just fire an object in the opposite direction as my ship is heading. But the Shoot Object option for selecting a direction curiously disables the 1+1 box (to calculate a direction). This seems like another curious omission. If this was available, it would be easy to have shots that can come out at any relative degree (get current direction +16 for backwards, +8 for right, +24 for left, etc.).

    Even better, if any of these calculations let us set a min/max range (or if the direction selector had an option to make it relative to the ship's current heading), you could do cool spreads of shots...

    As it is, I can only shoot forward or directly at an enemy or in some global direction. I can't shoot in a relative direction or in the *general* direction of a target...
    <img src="/center/images/graemlins/frown.gif" alt="" />

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shoot an object backwards?

    Another case of something I can't do in my Star Control clone - I'd like to be able to just fire an object in the opposite direction as my ship is heading. But the Shoot Object option for selecting a direction curiously disables the 1+1 box (to calculate a direction). This seems like another curious omission. If this was available, it would be easy to have shots that can come out at any relative degree (get current direction +16 for backwards, +8 for right, +24 for left, etc.).

    Even better, if any of these calculations let us set a min/max range (or if the direction selector had an option to make it relative to the ship's current heading), you could do cool spreads of shots...

    As it is, I can only shoot forward or directly at an enemy or in some global direction. I can't shoot in a relative direction or in the *general* direction of a target...
    <img src="/center/images/graemlins/frown.gif" alt="" />

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    []The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong. [/]

    hehe, this is *exactly* the solution I tried, and I was pleased when it seemed to work... until I fired rapid-fire and there were multiple copies of my projectile object in the world. When that happens, the change direction action occurs on *every copy*, not just the one that was spawned in that particular event (I guess it doesn't assume I was referring to the one that just spawned)... so close, but yet so far... :/

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    []The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong. [/]

    hehe, this is *exactly* the solution I tried, and I was pleased when it seemed to work... until I fired rapid-fire and there were multiple copies of my projectile object in the world. When that happens, the change direction action occurs on *every copy*, not just the one that was spawned in that particular event (I guess it doesn't assume I was referring to the one that just spawned)... so close, but yet so far... :/

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    Remove the current direction-changing action and put this instead:
    When flag 0 ("bullet") is off --&gt; change direction to ship direction +16 , set flag 0 on

    That way, the direction of each bullet will only be changed once.

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    Remove the current direction-changing action and put this instead:
    When flag 0 ("bullet") is off --&gt; change direction to ship direction +16 , set flag 0 on

    That way, the direction of each bullet will only be changed once.

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    []Remove the current direction-changing action and put this instead:
    When flag 0 ("bullet") is off --&gt; change direction to ship direction +16 , set flag 0 on

    That way, the direction of each bullet will only be changed once. [/]

    Yeah, good idea. That'll do it. I'll probably do something like that, I guess... I still wish there was more control over what direction something goes in when created/shot (specifically, relative to the direction of the shooter).

    Thanks!

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shoot an object backwards?

    []Remove the current direction-changing action and put this instead:
    When flag 0 ("bullet") is off --&gt; change direction to ship direction +16 , set flag 0 on

    That way, the direction of each bullet will only be changed once. [/]

    Yeah, good idea. That'll do it. I'll probably do something like that, I guess... I still wish there was more control over what direction something goes in when created/shot (specifically, relative to the direction of the shooter).

    Thanks!

Similar Threads

  1. shoot an object
    By taciturn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd October 2008, 10:53 PM
  2. What would I use to shoot an object(read for det.)
    By csj1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2008, 04:17 PM
  3. What's the best way to shoot an object?
    By Ravenius in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th May 2008, 06:43 PM
  4. shoot an object
    By Nate in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st February 2008, 02:21 PM
  5. bug with shoot an object action!
    By rurkryber in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd January 2007, 06:26 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
  •