User Tag List

Results 1 to 6 of 6

Thread: Multiple Lasers at a time?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Multiple Lasers at a time?

    I was looking at the laser example posted here
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=159665&Searchpa ge=1&Main=22091&Words=laser&Search=true#Post159665
    and I was wondering if its possible that I can create multiple lasers on the screen at time, but without the slowdown? I made a similar code to that example above, but when I did this while more than 1 laser was on the screen, it seemed to slow down the game.
    I tried making mutliple lasers WITHOUT fast loops, but i don't think it's going to stop correctly (collisions with backdrops, etc) without using fast loops.

    I also tried spreading out the lasers alterable values & using fast loops to check the count of lasers & their ID's, but that did not seem to work either. Any suggestions?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Lasers at a time?

    It's probably the scaling that's slowing it down. You could try moving a tiny "guide" object to detect obstacles in the fastloop, and then creating a scaled "laser" object after the fastloop has finished...

  3. #3
    No Products Registered

    Join Date
    Jul 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Lasers at a time?

    I have the same problem and I think it is neccessary to create "Laser Extension" that will use shaders(not active objects). It would be effectively and economically(for PC recources). I could create such extension by myself but i don't know C++ and I have not MMF2 SDK.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Lasers at a time?

    Here, I made an example for you guys:

    http://www.ultimatewalrus.com/uwexamples/multi_lasers.mfa

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Lasers at a time?

    Actually, me and a friend are developing a game together. This animation is actually what I am trying to accomplish as far as lasers go.
    This is just a flash animation, but me and this guy are actually making this into a game now.
    I kind of have the lasers working, but they aren't using fast loops for stretching at the moment. I'm just using fast loops to separate & match IDs of the lasers and whatever is firing them. X_X

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Lasers at a time?

    Yeah, that sounds about right. For an effect like that I think I'd just create multiple tile-sized laser objects, and create a new one every couple frames.

Similar Threads

  1. joystick input on multiple games running at the same time?
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th November 2012, 09:12 PM
  2. Only added score of single enemy when destroy multiple enemies at a time.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 11th April 2012, 12:26 PM
  3. Multiple developers working in MMF2 at the same time on the same project?
    By RedHades in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 6th February 2012, 04:14 PM
  4. Nice Lasers
    By Fimbul in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 28th April 2010, 08:37 PM
  5. Multiple lasers with collision
    By thewreck in forum File Archive
    Replies: 5
    Last Post: 1st July 2006, 09:53 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
  •