playMaker

Author Topic: Movement and Scaletime [SOLVED]  (Read 1867 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Movement and Scaletime [SOLVED]
« on: December 31, 2014, 01:58:55 PM »
Hi, im using Addforce (set to impulse) to make my player jump at an angle (45deg). All of that works fine, however, I have used ScaleTime (enabled fixed time delta) to increase the game from (1) to (1.3). The player now jumps further at an angle. How do i keep this at the same distance but just increase the speed of time? am i missing something obvious?
« Last Edit: January 09, 2015, 06:46:56 AM by coxy17 »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Movement and Scaletime
« Reply #1 on: December 31, 2014, 08:41:02 PM »
Adjust the amount of force added and/or the objects mass
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Re: Movement and Scaletime
« Reply #2 on: January 01, 2015, 05:17:01 AM »
Ok. Do I have to do this each time I adjust the scaletime? Or can this be calculated?

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: Movement and Scaletime
« Reply #3 on: January 02, 2015, 01:30:13 AM »
Well, you can always store the Timescale value into a float variable, and always divide the force value with that variable that store the Timescale value.

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Re: Movement and Scaletime
« Reply #4 on: January 09, 2015, 06:46:44 AM »
ok thanks, ive done this and it works perfectly