User Tag List

Results 1 to 10 of 10

Thread: Laser, Lightning and Bullets

  1. #1
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Laser, Lightning and Bullets

    How do I do them?

    I can do every other type of weapon- sword, missile, fire, ice, nailgun, crossbow, spears, so I know the basics of shooting.

    But I don't know how to do lasers, bullets or lightning.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    What's the mechanical/programmatic difference that you're going for?

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    With lasers and lightning, i imagine you would want to generate them with loops untill they collide with a obstacle.

    With the lightning you would add random values to make it strike off differently each time.

  4. #4
    No Products Registered

    Join Date
    Jul 2008
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    This really depends on what you're going for. There are thousands of games that use lightning and lasers differently.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    A long time ago I made a laser example you apparently liked. Although it would probably not be good for what you want.

    Here it is

  6. #6
    Clicker Fusion 2.5

    Join Date
    Mar 2007
    Posts
    495
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    Well I think with the trick of high-speed 360' bullets (where you set the action point ahead of the object and constantly set that as the bullets position) you could make some cool bullets and if you made longer bullets that joined up and you managed to make the objects travel in true 360' rather than 32 directions you could make a really sweet, sweeping phaser-like thing that followed a target.

    I think Nick's right with the lightning - I think a single object being created at random locations would be good with maybe a active system box that flashes a colour all across the screen just for a second.

  7. #7
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    Well the mechanics of these 3 projectiles are simple. But I need to learn how to Bullet before I can do Laser and Laser before I can do Lightning.

    I can already do these:
    Shoot an Object
    Shoot an Object at 360 Degrees
    Do Damge and HP

    But I can't do these:
    Make the bullet hit its target at the exact frame it was shot however far it is away, it basically has Infinite Speed with Collision.

    Now the Laser would just be the above bullet but would paste image into background to make a yellow beam, it Also needs to bounce off Metal. (I could just make a flash and say it bounced off in every direction including 3D Directions)

    The absolute hardest projectile to shoot is Lightning, it is similar to the Laser but it arches and splits randomly.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    I fail to see how you programmed a 3D engine but can't figure out how to do this. Run a loop which moves the bullet towards the target so it hits it in one frame.

    No, you woulnd't paste the laser to the background you would just create many of the object and then destroy them. To make it reflect you would have to work out what angle it would reflect off the object at then set the lasers angle to this number.

    The lightning would simply do just as you say, curve around and randomly split into two copies of itself at various points. Be careful with this though as you may end up eating too much processing power.

  9. #9
    Clicker Fusion 2.5

    Join Date
    Mar 2007
    Posts
    495
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    Oh sorry, I didn't realise you meant like a lightning-gun - I figured you meant a background weather effect.

    I agree with Nick: pasting to the background wouldn't do you any good as it would create a permanent, stationary image.
    Paste to background is seldom useful in my experience.

  10. #10
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Laser, Lightning and Bullets

    For the instant hit bullets, use pythagoras theorim to find out how many times you need the loop to run that propels the bullet towards the player in 360°.

Similar Threads

  1. Lightning-Engine C++
    By Pharanygitis in forum Paid Design & Development Requests
    Replies: 4
    Last Post: 6th July 2012, 05:07 PM
  2. Another Lightning Example!
    By Jaffob in forum File Archive
    Replies: 6
    Last Post: 19th October 2009, 02:16 PM
  3. Chasing Lightning from Gunstar Heroes
    By Fimbul in forum File Archive
    Replies: 3
    Last Post: 10th June 2009, 05:51 PM
  4. Force lightning effect
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd September 2008, 11:03 PM
  5. A cheap lightning effect...
    By DanielRehn in forum File Archive
    Replies: 21
    Last Post: 21st July 2006, 11:52 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
  •