User Tag List

Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 32

Thread: 360 degree shooting

  1. #11
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    []
    This is also way to advanced for me:
    "set bullet x Pos to bullet value Start X + cos(bullet vaule angle) * steps
    set bullet y Pos to bullet value Start Y - sin(bullet vaule angle) * steps" [/]
    If thats to advanced then maybee you should study some more math... this is REALLY basic stuff...

  2. #12
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    []
    This is also way to advanced for me:
    "set bullet x Pos to bullet value Start X + cos(bullet vaule angle) * steps
    set bullet y Pos to bullet value Start Y - sin(bullet vaule angle) * steps" [/]
    If thats to advanced then maybee you should study some more math... this is REALLY basic stuff...

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    Give me a break, I got an E in math. Anyways, I figured it out. The code is more like this I presume:

    Alterable Value D( "bullet" )+Cos(Alterable Value B( "bullet" ))*Alterable Value F( "bullet" )

    still don't understand that first part

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    Give me a break, I got an E in math. Anyways, I figured it out. The code is more like this I presume:

    Alterable Value D( "bullet" )+Cos(Alterable Value B( "bullet" ))*Alterable Value F( "bullet" )

    still don't understand that first part

  5. #15
    No Products Registered

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

    Re: 360 degree shooting

    "Create bullet, set angle, set speed, set start Y and set start Y."

    what i mean by that is that you should create a bullet somewhere, perhaps when you press FIRE 1 or summin. In that event, set the bullets start X and Y to wherever you want it to start, and angle (0 - 360) and speed (0-whatever)

  6. #16
    No Products Registered

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

    Re: 360 degree shooting

    "Create bullet, set angle, set speed, set start Y and set start Y."

    what i mean by that is that you should create a bullet somewhere, perhaps when you press FIRE 1 or summin. In that event, set the bullets start X and Y to wherever you want it to start, and angle (0 - 360) and speed (0-whatever)

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    I've succsesfully made your code. But I forgot to mention that I want it to aim towards a croasshair (the mouse) and I want to randomize the direction a little

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    I've succsesfully made your code. But I forgot to mention that I want it to aim towards a croasshair (the mouse) and I want to randomize the direction a little

  9. #19
    No Products Registered

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

    Re: 360 degree shooting

    there are a couple of examples around that cover getting an angle between two points, i made one a while back aswell that involved direct hitting lasers:

    http://clickteam.com/center/showflat.php/Cat/0/Number/1015/an/0/page/7#Post1015

    if you check the 'laser' object's behaviour there is a part of the code that gets the angle from its x and y to a target x and y.

    if you want the angle to vary a little just add + random(5) - random (5) to angle. Or whatever value you would like.

  10. #20
    No Products Registered

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

    Re: 360 degree shooting

    there are a couple of examples around that cover getting an angle between two points, i made one a while back aswell that involved direct hitting lasers:

    http://clickteam.com/center/showflat.php/Cat/0/Number/1015/an/0/page/7#Post1015

    if you check the 'laser' object's behaviour there is a part of the code that gets the angle from its x and y to a target x and y.

    if you want the angle to vary a little just add + random(5) - random (5) to angle. Or whatever value you would like.

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. another 360 degree shooting question
    By Greasy in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th May 2012, 11:21 PM
  2. 360 degree shooting
    By Hayo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th March 2010, 02:49 PM
  3. 360 degree shooting
    By Triclyde in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th March 2010, 07:13 AM
  4. 360 Degree Shooting
    By Amade in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th February 2008, 12:46 AM
  5. What have I done wrong? (360 degree shooting)
    By gum in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th September 2006, 06:46 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
  •