chuck icon indicating copy to clipboard operation
chuck copied to clipboard

now returns 0.0 from Chugen

Open heuermh opened this issue 7 years ago • 0 comments

Even after time has advanced now returns 0.0 when called within the tick(float) method inside a class which extends Chugen.

For example:

class WhatTimeIsIt extends Chugen
{
    fun float tick(float in)
    {
        <<<"what time is it?", now>>>;
    }
}

WhatTimeIsIt what => blackhole;
<<<"before", now>>>;
1::samp => now;
<<<"after", now>>>;
1::samp => now;
<<<"done">>>;

displays

$ chuck whatTimeIsIt.ck
before 0.000000
what time is it? 0.000000
after 1.000000
what time is it? 0.000000
"done" : (string)

Migrated from https://github.com/spencersalazar/chuck/issues/28

heuermh avatar Jan 16 '18 17:01 heuermh