Brutile Posted January 30, 2016 Share Posted January 30, 2016 Can the Time class get a delta time added to it please? GetSpeed is really confusing, and isn't very useful. Also, people transitioning from Unity would understand this a lot better. It wouldn't be very difficult, you could just write a small function that returned: 1.0 / Time:UPS() Then you could just go: timer = timer + Time.deltaTime and the time will count up in seconds, regardless of the frame rate Quote Link to comment Share on other sites More sharing options...
Jazz Posted January 30, 2016 Share Posted January 30, 2016 You have many good ideas Brutile. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
Rick Posted January 30, 2016 Share Posted January 30, 2016 Just multiply your values by GetSpeed(). I'm not sure what's confusing about that? If your PC is the "perfect" timing GetSpeed() returns 1 (so multiplying your value by this does nothing to change it) If your PC is really fast GetSpeed() returns < 1 (so multiplying by this will reduce your value to slow it down) If your PC is really slow GetSpeed() returns > 1 (so multiplying by this will increase your value to speed it up) 1 Quote Link to comment Share on other sites More sharing options...
Brutile Posted January 30, 2016 Author Share Posted January 30, 2016 Ok, maybe I over exaggerated about it not being useful, but it just makes more sense to say "I want to move this object x meters per second" Quote Link to comment Share on other sites More sharing options...
Rick Posted January 30, 2016 Share Posted January 30, 2016 I guess "makes sense" just depends on what you're used to , but seriously you use it the same you do delta don't you? You multiply your values by it. Quote Link to comment Share on other sites More sharing options...
Brutile Posted January 30, 2016 Author Share Posted January 30, 2016 I don't want to replace GetSpeed(), and I don't want to start an argument over what "makes more sense". I'd like to see both available, and for people to choose what they'd rather use. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 31, 2016 Share Posted January 31, 2016 You can always map GetSpeed to a DeltaTime variable in a custom script. I honestly doubt if Josh would change the API to this. Regardless of the argument I given, I think Josh would reply within the lines of: this is Leadwerks, not Unity. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.