Game Development Community

How to speed up MoveTo function?

by yurembo · in Torque 2D Beginner · 01/14/2015 (11:56 am) · 4 replies

When I try to move an object with moveTo func, this object moves very slow, I try to increase the second parameter of this func (speed), but it's no helps.
Camera size in my game: 800 x 600, cause all art were prepared in this resolution.
How can I increase a speed in MoveTo func?

Edit: is there another way to increase a speed?

#1
01/14/2015 (1:12 pm)
Quote:Camera size in my game: 800 x 600, cause all art were prepared in this resolution.
Whoa....that's big. Keep in mind that everything in T2D is measured in meters, so you have created a scene that's pretty large. Have you tried scaling that down a bit and testing the speed?.
#2
01/15/2015 (12:09 am)
No way, it's not increase a speed.
I chose another way
#3
01/16/2015 (6:11 am)
Box2D Manual

As Mich stated, 800x600 is a very large field and as the manual states thinks are kept reasonable to maintain the integrity of the simulation. I recommend becoming familiar with Box2D's manual - it might give you some insight that will help you overcome your issue.
#4
01/16/2015 (6:54 am)
Thank you, guys, I'll read this doc