PDA

View Full Version : What's wrong?



TSO
08-31-2010, 01:35 AM
//m_swc = tostring(this:GetLinearVelocity());
swc = this:GetLinearVelocity();
Stop();
StopX();
StopY();
AddForce(Vector2(swc,swc));


Error: Stop function not defined
StopX function not defined
StopY function not defined
AddForce function not defined.

What's wrong?

Seth
08-31-2010, 01:43 AM
I think you need a "this:" in front of each of those, as they must be called on an entity object.