≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
time counter
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b][/b] wrote: can anyone tell what the "0.62" do in this snippet from @hadoken? What's the main difference between hadokens 1st code compaired to the latest version above (also from hadokens)? I got good results with a custom version of this one, not sure tho how they differ... Thanks in advance. [quote][b]hadoken[/b] wrote: this one should do the job: [code]/* <behavior jsname="behavior_HadokenDeltaTimeAsCounterDemo"description="behavior_HadokenDeltaTimeAsCounterDemo"> </behavior> */ behavior_HadokenDeltaTimeAsCounterDemo = function() { this.counter = 0; this.init = 0; } behavior_HadokenDeltaTimeAsCounterDemo.prototype.onAnimate = function() { this.currentTime = new Date().getTime(); if(this.init == 0) { this.lastTime = this.currentTime; this.init = 1; } this.DeltaTime = (this.currentTime - this.lastTime) * 0.062; this.lastTime = this.currentTime; this.counter += Math.round(this.DeltaTime); print("this.counter = " + this.counter); } [/code][/quote][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact