User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Bullet Widget

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,295
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Bullet Widget

    I made a simple little widget to take care of 360 degree shooting. Probably been done before but whatever...

    Features;
    * mouse aiming
    * automatic sprite rotation (32 dir. & 360 degree quick/quality)
    * variable bullet angle/speed/accuracy/gravity
    Attached files Attached files

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,817
    Mentioned
    6 Post(s)
    Tagged
    2 Thread(s)

    Re: Bullet Widget

    Very nice little widget!

  3. #3
    No Products Registered

    Join Date
    Feb 2008
    Location
    uk
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    cool!

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    Looks like an useful widget, and I like how there's comments that explains the usage.

    Two things though:
    * The events themselves are not commented! If you want people to learn something from your public example files, it's a lot easier if they can follow your thoughts.
    * Why not rename the "Reserved" alterable values with ones beginning with an underscore to mark that they should not be changed. If the name reflects what they do, it's a lot easier for other people to understand how the widget works.

    I can't help to recognize the expression used to retrieve the angle btw! Looks like my "doom expression" as I call it

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,295
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    Thanks for the suggestions.
    Yes, it is your angle formula

    I may add comments later, but to be honest I don't think this is the way for newcomers to learn. There are much simpler 360 degree shooting examples (using the Advanced Direction object for example) that would be far more suitable for people to learn from. Because it's a widget and only uses one object, the code is unnecessarily complex.

    Besides, I couldn't explain the maths behind your angle formula if I wanted to.

    This is really intended more for the total beginner who, for the time being at least, just wants to have more precise shooting in their game without having to learn any complicated maths.

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Location
    USA - Florida
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    (almost)total beginner here, incapable of learning any complicated math, can verify the above comment! THANK YOU!!!!!! lol


  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    There's no need to explain the maths behind the "doom expression". I actually originally made that expression as a joke

    However, you can at least write what the events are there for, and what their purpose are. Commenting your code should just be a reflex, and to train a reflex you have to be consequent and do it all the time when you program. As a programmer, it's out of the question for me to not comment code, even if I'll be the only one reading those comments. Not commenting code that will show up in public is almost alien to me.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,108
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    if you attempt to make an even quasi-complex game you NEED to comment everything.

  9. #9
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,295
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    NEW VERSION
    Exactly the same, but now commented.
    Attached files Attached files

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bullet Widget

    Great!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Bullet-Time: There is no Foo!
    By Dines in forum Articles
    Replies: 24
    Last Post: 2nd June 2013, 10:04 PM
  2. If bullet overlaps a certain object, damage the shooter of the bullet
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th September 2012, 02:43 PM
  3. bullet goes through wall
    By jaaj302005 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th October 2011, 12:04 AM
  4. 3D menu Widget - Wild Widget Contest entry
    By Czentnar in forum Widgets
    Replies: 16
    Last Post: 26th March 2011, 12:51 AM
  5. The Digit Widget [WIP] (multi-widget)
    By Raylax in forum Widgets
    Replies: 1
    Last Post: 13th December 2008, 11:42 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
  •