Smooth Transitions

by ExPixel
[Share] [Zip]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://ExPixel.SmoothTransitions##version=5

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://ExPixel.SmoothTransitions##version=5

379 downloads
Version 1.3.1
Date added: May 14 2011
Last updated: May 29 2011
2 fans
Use this library to give your interface controls smooth transitions from colors, sizes, and positions. [More]
v1.3.0
-Added a cleaner looking demo, made it cooler lookin'.

v1.2.1
- Minor changes made to the source.

v1.2.0
#Added#
controlAlphaTo(Player, control, new_alpha, speed=1, velocity=0, delay=1)
-Change the alpha of a control (currently only supports windows due to BYOND's limitations at the moment.)

v1.1.0
#Added#
controlMoveTo(player, control, new_x=0, new_y=0, speed=1, velocity=0, delay=1)
-Move the control on player's interface
controlSizeTo(player, control, new_width=0, new_height=0, speed=10, velocity=1, delay=1)
-Resize the control on player's interface
controlColorTo(player, control, new_color, speed=1, velocity=0, delay=1)
-Recolor the control on player's interface
controlTextColorTo(player, control, new_color, speed=1, velocity=0, delay=1)
-Recolor the control's text on player's interface

Advertisement

Comments

Phoestre: (Jul 18 2011, 1:22 am)
Nice one! May use in future.
ExPixel: (May 29 2011, 11:27 am)
Forum_account wrote:
The demo should be simpler. It should show how to use the library, not show how to use prob(). If you want to show examples of how to make transitions happen in different orders, make separate verbs and explain it clearly. I should have to add one line of code to use these transitions in my game and the demo should make it clear what that line of code is.

The demo should also show more practical things. I never needed a proc to randomly resize or recolor buttons, so at a glance I have no use for this. The input window is a good example, I'm sure you can find good examples for other events.

Also, you might want to make the "delay" parameter for all of your transition procs default to world.tick_lag instead of 1.

Tried to add some comments and made the demo smaller.
Kidpaddle45: (May 29 2011, 10:55 am)
Great Job.Looks great.
Forum_account: (May 29 2011, 4:18 am)
The demo should be simpler. It should show how to use the library, not show how to use prob(). If you want to show examples of how to make transitions happen in different orders, make separate verbs and explain it clearly. I should have to add one line of code to use these transitions in my game and the demo should make it clear what that line of code is.

The demo should also show more practical things. I never needed a proc to randomly resize or recolor buttons, so at a glance I have no use for this. The input window is a good example, I'm sure you can find good examples for other events.

Also, you might want to make the "delay" parameter for all of your transition procs default to world.tick_lag instead of 1.
Kyle_ZX: (May 26 2011, 10:48 pm)
Very impressive. Great work.