Fandom

Beta: The Game

Tween

49pages on
this wiki
Add New Page
Comments0 Share
Beta Tutorial 6 How to tween objects in your game-001:03

Beta Tutorial 6 How to tween objects in your game-0


The [ tween ] commandEdit

The [ tween ] command is similar to the [ set ] command. You can use [ tween ] to quickly change the properties of your objects, however [ tween ] differs from [ set ] in that it changes your object over a specified time - creating an animation effect! You can click on any object and apply a [ tween ] effect to it.

In the codePop below, we [ tween ] Beta to become larger.

tween beta 2 height:210

The number 2 in this command is the amount of seconds it will take for Beta to change size, creating the effect.

Here's another example:

tween spring11_2 5 width:210 angle:60

See Also:Edit

tweenAll

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.