Skip to content

Tween a camera's angle with FlxTween.tween Vs FlxTween.angle #4135

Closed Answered by KoloInDaCrib
MAZ12211 asked this question in Q&A
Discussion options

You must be logged in to vote

FlxBasic does not have an angle property in it, which is why FlxSprites are used as the first argument

Think of it like a tree, the root of the tree is FlxBasic and FlxSprite and FlxCamera are it's branches, all of them having different characteristics in form of properties. Just because two branches have similar characteristics does not necessarily mean that one is a descendant from the other or that they are the same. You also cannot expect that, just because these two branches have the same predecessor, they are the same.

The angle of FlxCamera's is a different one than the angle of FlxSprites, even if they have the same name. Therefore, FlxTween.angle, which normally expects an FlxSpr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MAZ12211
Comment options

@KoloInDaCrib
Comment options

Answer selected by MAZ12211
@MAZ12211
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants