SetFlip() problems
by Bucko · in Torque Game Builder · 03/19/2005 (7:09 am) · 1 replies
I have a sprite up and running and need to be able to flip it horizontally at times.
If I call setFlip() on my fxAnimatedSprite2D object I get no errors in the log but nothing happens.
I've tried various calls:
setFlip(true false); setFlip(flipX); setFlip("flipX");
but nothing happens.
Am I right in assuming that this should work and shoul be called on the fxAnimatedSprite2D object?
I've tried it on the fxAnimationDatablock2D but then I get errors.
I could make flipped frames in PhotoShop but it seems like a waste of memory (and time).
If I call setFlip() on my fxAnimatedSprite2D object I get no errors in the log but nothing happens.
I've tried various calls:
setFlip(true false); setFlip(flipX); setFlip("flipX");
but nothing happens.
Am I right in assuming that this should work and shoul be called on the fxAnimatedSprite2D object?
I've tried it on the fxAnimationDatablock2D but then I get errors.
I could make flipped frames in PhotoShop but it seems like a waste of memory (and time).
About the author
Associate Melv May
The correct format is "setFlip(true, true);" e.g. using the "," comma to seperate the parameters.
There is a mistake in the reference document that has now been corrected that indicated that you use the following format setFlip("true true"); which is not correct.
Note that you cannot pass multiple options using something like setFlip(true true); as you need to encapsulate the parameters in double-quotes like setFlip("true true");.
The exception to this is if you're passing a string but it doesn't have spaces in it.
Sorry for the confusion, this and many more changes will be in the next update.
- Melv.