Game Development Community

Once again Stuck can't use 2 x moveTo

by Tiago Carita · in iTorque 2D · 09/30/2009 (1:21 pm) · 0 replies

Hi people we are once again stuck on some stuff
We are finishing (trying to) our shooter game but we are having the following troubles lets see if we can explain it...

We are using the function moveTo to place our ship in screen and move it around and the enemies we use setLinearVelocity to make them travel on the screen..

When we got to the boss we don't want it to move out of the screen and so we tried to use moveTo to control it, but he never go to the desired coordinate, so we tried to move it with setLinearVelocity to no avail, he would move wrongly and erratically...

After several attempts and changes we noticed that if the sprites of the boss were below 90x90 they would move correctly but if they bigger than 89x89 they would move erratic...

If anyone could help us we would be appreciated...
Thank you...