User Tag List

Results 1 to 6 of 6

Thread: What's the best way to shoot an object?

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's the best way to shoot an object?

    In my topdown - like shooter game, I've used the "create object at player" condition to make the bullet and then set it as bouncing ball to face the mouse. Well, it works fine if you don't move. When I start shooting a bit more and the screen is scrolling, I see bullets flying everywhere in random directions. I do delete the bullets every time they go out of the frame, but that doesn't really help. My framesize is 2000 x 2000 if that helps at all. Using 247.

  2. #2
    No Products Registered

    Join Date
    Apr 2008
    Location
    Weston-super-mare
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What's the best way to shoot an object?

    why no delete them when there at the windows edge?

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What's the best way to shoot an object?

    Quote Originally Posted by Ravenius
    I do delete the bullets every time they go out of the frame,

  4. #4
    No Products Registered

    Join Date
    May 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What's the best way to shoot an object?

    "Out of the frame" isn't the same thing as "out of the window", though.

    You mentioned scrolling, so I'm guessing the size of your frame is bigger than the size of your game window. Therefore, though the bullets may be going past the edge of the window, they're still within the frame.

    Remember that the "frame" is the entire play area; the window's just what you can currently see on the screen.

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What's the best way to shoot an object?

    Hmm, you may be right about that. I changed the destroy event to happen when the bullet is 1 pixel to the window's edge and it works fine now. Must've been that it set the objects to be still (not active) when too far from the windowand then they reactivated when I went close and started to fly again. Such as simple solution again, thanks!

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: What's the best way to shoot an object?

    Ha, funny I had this problem too in one of my first games. You can also just set the bullet's properties to remain active even off frame. However the second problem with leaving the bullet active is, whatever it hits (off screen) reacts when you finnaly see them, most often just dying where they stand. Therefore, the enemies must be active off screen as well, and normally that isn't what you'd want.

    Your solution definately works better than changing the properties of the objects, I had to reprogram most of mine because I didn't have much experience in MMF2.

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. shoot an object
    By Nate in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st February 2008, 02:21 PM
  4. Shoot object not straight...?
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th January 2008, 02:23 PM
  5. Shoot an object backwards?
    By Michael_Gummelt in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th July 2006, 05:44 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
  •