Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / BUG : ClearTweenChain() (V2.0.14)

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Jun 2015 22:24 Edited at: 26th Jun 2015 22:25
If you clear a Tween Chain, then it stops working on subsequent plays. GetTweenChainPlaying() returns zero.

Demo, no media required:



Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 27th Jun 2015 00:06 Edited at: 27th Jun 2015 00:06
You can work around it by adding:
CreateTweenChain(ch)
after you clear it. This preserves the id used.


V2 T1 (Mostly)
Uzmadesign
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jun 2015 00:40
Thanks CJB
I have worked around by deleting and creating.
Without the delete, you might be leaving some shrapnel behind to accumulate.
In the demo I am coding, The chain gets recreated every second or more, so I could get an accumulation of leftover chains.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 29th Jun 2015 18:29
ClearTweenChain(ch) was accidentally calling DeleteTweenChain(ch), it will behave properly in the next version.

Login to post a reply

Server time is: 2024-11-25 21:41:30
Your offset time is: 2024-11-25 21:41:30