User Tag List

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

Thread: Thruster Widget

  1. #1
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thruster Widget

    This is a custom built rocket-ship type movement I built for the next game I am designing. It includes (but is not limited to) : real physics thrusting forward and backward power, side to side thrust, and orbiting capabilities. This is my first widget, so any comments would be appreciated.
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Thruster Widget

    Hey there. It's pretty nice, but there's one flaw.
    Object positions are integal, you can't store decimals, like 3.14159.
    This will have an unwanted efffect - Imagine Y Speed is only 0.5

    Y("Active")+0.5 will result in Y("Active")+0!

    To fix this, use 2 alterables for the position, named Float X and Float Y or so, and add the speed to it.

    Then, just do:
    Always
    - Set X of Ship to X Float("Ship")
    - Set Y of Ship to Y Float("Ship")

    That should work fine

    Oh, and another thing.
    Replace things like
    horz thrust( "Thruster Widget" )*Cos(horz angle( "Thruster Widget" ))/50
    by
    horz thrust( "Thruster Widget" )*Cos(horz angle( "Thruster Widget" ))/50.0
    So the movement will be smoother, cause /50 will result in an integer, no decimals.

  3. #3
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    Thanks, Looki! I had no idea about the automatic integer division when the .0 is not added! Anyway, here is the updated version.
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Thruster Widget

    Okay.
    ..but I forgot one thing: Remove Every 00'05 from each event, and lower the parameter of the actions that increase/decrease the "horz" thrust variable. It's set to 1, change it to 0.2 or so. That should look much better.

  5. #5
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    Thanks for all your help, Looki, its much smoother movement now.
    Attached files Attached files

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    Good work, Skeets.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  7. #7
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Thruster Widget

    You're welcome
    There still are "Every 00'05" events though :confused:

  8. #8
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    Quote Originally Posted by Looki
    You're welcome
    LOL I'm glad you got the hidden meaning.
    Good job, both of you.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  9. #9
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    those "Every 00'05" events are for slower acceleration rates. They don't affect the 'smoothness' of the movement.

  10. #10
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Thruster Widget

    OK, I found a rather large bug where the spaceship's side thrusters max speed didn't work, here is the final (hopefully) version.
    Attached files Attached files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. 3D menu Widget - Wild Widget Contest entry
    By Czentnar in forum Widgets
    Replies: 16
    Last Post: 26th March 2011, 12:51 AM
  2. Widget Request
    By MuddyMole in forum Widgets
    Replies: 0
    Last Post: 27th February 2010, 06:19 PM
  3. Something is odd in this widget?!
    By SomethingOdd in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 20th December 2008, 11:24 AM
  4. The Digit Widget [WIP] (multi-widget)
    By Raylax in forum Widgets
    Replies: 1
    Last Post: 13th December 2008, 11:42 PM
  5. Simple Thruster Trail
    By scottige in forum File Archive
    Replies: 11
    Last Post: 2nd July 2006, 07:51 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
  •