Game Development Community

Way to temporary stop flipx?

by Ryan Jones · in Torque Game Builder · 05/13/2010 (7:49 pm) · 1 replies

Curious if there's a way that I could say call a function that would stop the player from being able to flipx, so like %this.flipX would always be false for example for a short amount of time or within a scheduler.

Or something that may be used in a fighting game.

#1
05/14/2010 (12:35 am)
I'm not being funny but if you don't want it to flip then don't call flip! Add a field to your object that indicates to any of your other functions (that I presume call flip) whether to call flip or not.
if ( !%this.DisableFlipX )
{
   %this.setFlipX( ... );
}