WASP3D Forum Go to: www.wasp3d.com
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline Mandeep Singh Bawa  
#1 Posted : 27 June 2018 11:16:42(UTC)
Mandeep

Rank: Administration

Groups: Administrators, Registered
Posts: 163
Man
India
Location: Delhi

Thanks: 3 times
Was thanked: 57 time(s) in 43 post(s)

This example contains 2 templates of Flip Counter Up and Down respectively.

To download the Template Archive compatible to work with version 3.9.3 and above. Download Template Arc

This example has been created using a script to create a counter in the Timer. Please go through the script in the Action Set "Time Change".

And a Timer to run this script every second. The Text calculated in the script is added to two different variables sTime 0 showing Old Value and sTime 1 showing New value.

The variables are mapped to 2 different 3DText objects called New value and Old Value. These 2 Objects are rendered to a Render Texture and the Render Texture is applied to the Rectangles using UVW Planar Texture object.

The Planar Texture is applied in Such a way that the Rectangles in the AnimGRP on rotation are showing the new and old value as they flip over.

Each time the Timer Object completes one second(periodically) Animation Set of Rotation is applied to each Anim Grp respectively.

A Float 4 variable wAnimate has been used in the script to set value to 1 each time the value reaches 9 in countdown and 0 in count up to change the value to 1.

On the OnVariableChange event of the wAnimate variable, 4 cases have been added to animate each group respectively.

Check Variable action has been used in the CountDown template so that the timer does not countdown if the values is 0

Initial Time and Destination Time Float 3 variables have been added in the Data-Entry form to Set the values to the Counters respectively.

For any queries or further clarification on the same please reply to this post accordingly.



Cheers!
Team WASP3D Forum

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Copyright © 2024 Beehive Systems Pvt. Ltd, All Rights Reserved.