User Tag List

Results 1 to 6 of 6

Thread: Help for the custom engine by David Newton

  1. #1
    No Products Registered

    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help for the custom engine by David Newton

    I have copied(Well, for now, i want to do some changes of course.)David Newton engine by tutorial(Gravity and Horizontal movement) and i need help for the moving speed. The engine don't seems to take decimal, and i want speed between 2 and 3, because i'l be using multiple character and i want the speed to slightly differ from character to character. Can anyone help me with the matter of using small change of speed, or changing the speed to smooths changes. I tried decimal and dividing the "Horiz"("Player") loop setting. thanks anyone who help!

  2. #2
    Clicker Fusion 2.5 DeveloperiOS 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)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Help for the custom engine by David Newton

    it should take decimals. Try adding a 0 before the decimal. So instead of writing .25 write 0.25

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help for the custom engine by David Newton

    And if you're dividing, divide by 3.0 or whatever.

  4. #4
    No Products Registered

    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help for the custom engine by David Newton

    Nope, no difference between 2 and 2.5. I'm using the decimal in the Horiz Hidden Value, so maybe the problem is around that. Tried dividing(In the start loop Condition)by 2 and 10, but any number that were divided and were in decimal, seemed to get rounded up.

  5. #5
    No Products Registered

    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help for the custom engine by David Newton

    The rounding up were strange, however. It always was rounded to the lower number Ex: 1.9 were rounded to 1. Like if the decimal were ignored.

  6. #6
    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: Help for the custom engine by David Newton

    The problem here is that the object is always positioned [Horiz] amount of pixels to the left or right by a fastloop, and you can't run a loop a fraction of one time, so the part of the number after the decimal is ignored. For moving an object a non-whole number of pixels, you would need to keep two values to record its "virtual" X and Y positions, and then modify those with the movement mathematics, finally continually setting the object to those positions. That's going to require a bit of a rethink of the engine, though...

Similar Threads

  1. David Newton Platformer Wall Climb Glitch
    By Socknic in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th May 2013, 05:07 PM
  2. Custom Movement Engine?
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th November 2010, 08:42 AM
  3. Custom gun engine
    By Beginier in forum File Archive
    Replies: 12
    Last Post: 19th June 2009, 01:55 AM
  4. Need a Custom Platform engine example please
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th November 2006, 05:18 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
  •