Adam's Lair Forum

game development and casual madness
It is currently 2018/12/15, 00:38

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2018/09/15, 04:45 
Novice Member
Novice Member
User avatar

Joined: 2017/06/22, 02:43
Posts: 15
Location: Canada
Role: Hobbyist
Ive noticed that when the game is ran in the VS debugger, an object that is moved with Transform.MoveBy() several frames in a row moves unusually faster than it would when ran in the editor or with the standalone launcher. Why does this happen?

_________________
Gregory Karastergios
http://gregnk.com


Top
 Profile  
 
PostPosted: 2018/09/15, 07:37 
Forum Addict
Forum Addict
User avatar

Joined: 2013/09/19, 14:31
Posts: 880
Location: Italy
Role: Hobbyist
My guess is that when running in debug the game is not capped at 60FPS, thus having the MoveBys being called much more quickly than expected, and appearing to move faster than it should.

Try to multiply your MoveBy Vectors by Time.TimeMult (possibly with some further factors if the value is too big/small by itself) and you should be set.

_________________
Come on Duality's Discord channel. We have cookies! :mrgreen:


Top
 Profile  
 
PostPosted: 2018/09/15, 17:01 
Novice Member
Novice Member
User avatar

Joined: 2017/06/22, 02:43
Posts: 15
Location: Canada
Role: Hobbyist
Oh yeah, I forgot about using Time.TimeMult. Now it's fixed.

_________________
Gregory Karastergios
http://gregnk.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group