none
Fireing extention. RRS feed

  • General discussion

  • Here is a extension that I made. you give it the angle, gravity, power, and offsets (x And y) And it will return the x pos and y pos for you.

    sean.alyrica.net/Zock77Fire.zip

    Please give input!


    One thing that is impossible is impossible no matter if it is proven so first.

    Thursday, August 16, 2012 6:50 PM
    Answerer

All replies

  • Wow! Works great! Would be good for a tank game... You might want to include a XML. I like your quote!

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."



    Thursday, August 16, 2012 10:43 PM
  • Yep! :-)

    Do you know how to XML?

    have any suggestions?


    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 12:59 AM
    Answerer
  • If you are in C#, type /// above the function declaration and the IDE will automatically generate an XML template.
    Friday, August 17, 2012 1:45 AM
    Answerer
  • I don't know C sharp.

    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 1:49 AM
    Answerer
  • Look at the PlusPlus Extension for a good XML sample then.
    Friday, August 17, 2012 1:59 AM
    Answerer
  • Um... I am almost done with the tank game, but I believe your extension may have a bug. Can you send me the source code so I can compile it on my Win 7 computer? Thanks!


    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."



    Friday, August 17, 2012 3:12 AM
  • I did this extension in small basic. (http://litdev.hostoi.com/ then Expand the "Other Resource Downloads". it is the "Small basic extension compiler")

    But I can post the source code here.

    Angle = 0
    Power = 100
    Offsety = 100
    Offsetx = 300
    Gravity = 320

    Sub FireMissile
      _Power = Power / 10
        _Angle = Math.GetRadians((Angle + 180))
        _V2 = _Power
        _Vh = Math.GetDegrees(Math.Cos(_Angle)) * _V2
        _Vv = Math.GetDegrees(Math.Sin(_Angle)) * _V2
      _Time = _Time + .005
      x = _Vh * _Time + Offsetx
      y = _Vv * _Time +  (Math.Power(_Time,2) * (Gravity / 2)) + Offsety
      EndSub

    'Pretty simple.

    What is the bug?


    One thing that is impossible is impossible no matter if it is proven so first.


    Friday, August 17, 2012 3:13 PM
    Answerer
  • Oh, thanks! I also have the Small Basic Extention Compilier on my laptop, so I will give it a spin. The bug I found was that it does not reset the Zock77Fire.X and Zock77Fire.Y, so you can only fire one projectile per game. On a different note, I don't know if it is possible to include XML in Small Basic Extentions...

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."


    Friday, August 17, 2012 3:24 PM
  • Sweet. Ill fix that.

    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 3:33 PM
    Answerer
  • OK I fixed it. you simply set time to Zero.

    Download: sean.alyrica.net/Zock77Fire.zip

    I included a updated sample too.

    Have fun!


    One thing that is impossible is impossible no matter if it is proven so first.


    Friday, August 17, 2012 4:02 PM
    Answerer
  • Ok! I will test it soon!

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Friday, August 17, 2012 4:42 PM
  • Sweet. keep me posted.

    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 5:38 PM
    Answerer
  • Sounds good!

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Friday, August 17, 2012 6:09 PM
  • How is your tank game coming?

    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 6:14 PM
    Answerer
  • Great! I made all custom graphics in Paint and GIMP. It works great... I still have to get your new extension to make it work... I promise I will post I when I am done.

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Friday, August 17, 2012 6:41 PM
  • Sweet!!

    I was thinking of making a object for sound so all you have to do is type the URL of the sound and it would play it when it fired. what do you think?


    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 6:45 PM
    Answerer
  • Good idea!

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Friday, August 17, 2012 6:48 PM
  • I don't think I can put the sound object in. I can't use an extension to do it.

    One thing that is impossible is impossible no matter if it is proven so first.

    Friday, August 17, 2012 10:41 PM
    Answerer
  • Ok! I am almost done with the tank game! The bug fix works perfectly! I will try to make a sound extension in VB.Net and put it up for download. 

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Saturday, August 18, 2012 2:57 AM
  • Yay! I am done with v0.1 of the Tank Game! Here is the link: http://www.mediafire.com/?jkt3xz44u6vtjv0. Good luck!

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Saturday, August 18, 2012 3:07 AM
  • Mind if a tweek it a bit?

    One thing that is impossible is impossible no matter if it is proven so first.

    Saturday, August 18, 2012 3:29 PM
    Answerer
  • No! Not at all! It needs some help... Oh! Can the sound player play sounds from a local file, or does it have to be a url? I am almost done.

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."


    Saturday, August 18, 2012 3:53 PM
  • Well, what I meant is that it will not compile extensions.

    One thing that is impossible is impossible no matter if it is proven so first.

    Saturday, August 18, 2012 4:23 PM
    Answerer
  • The Tank Game, or for the Sound Player?

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Saturday, August 18, 2012 4:54 PM
  • The Small Basic extension compiler.

    One thing that is impossible is impossible no matter if it is proven so first.

    Saturday, August 18, 2012 5:12 PM
    Answerer
  • Ok... Sorry for the confusion. :)

    -Noah J. Buscher "Nothing is Impossible Until Proven Impossible."

    Saturday, August 18, 2012 5:30 PM