Game Development Community

T2D choppy movement.

by Chosen · in Game Design and Creative Issues · 07/29/2012 (10:46 pm) · 0 replies

Hey there,

So I am making a simply side scrolling game with Torque 2D.

Currently I have attached the 'menu' image to the player by adding this code to the t2dSceneGraph::onUpdateScene function

Taskbar.setPositionX(Player.getPositionX());
Taskbar.setPositionY(Player.getPositionY() + 35);

Though when I move the 'Taskbar' or menu appears to move very choppily.

Any other ideas as to how I could mount the GUI to my character?

Thanks
Jacob