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.

Author
Message
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 17th May 2018 23:16
Hello TGC forum,

One simple question: I simply want to move an object forwards and after a few seconds to move it to the right.

Note: It moves to the right but not smooth with tween animation

This is my code at the moment:



Thank you!
www.alexmatei.com
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 18th May 2018 06:32
You need two tweens. Create the second one after the first one has finished.
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 19th May 2018 17:55
Thank you for your advice!

I created it before the loop started and made it to play right after the object reaches a certain float point. However, it suddenly goes to the right without animation still.

Do you think that my approach was wrong?



Thank you!
www.alexmatei.com
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 19th May 2018 20:07
CreateTweenObject(2, 0.5)
should be something like
CreateTweenObject(2, 9)
right?
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
MateiSoft
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 19th May 2018 20:33
Hello smallg,

It was because of float duration! Indeed! Thank you for pointing out the problem!
www.alexmatei.com

Login to post a reply

Server time is: 2024-11-18 12:36:13
Your offset time is: 2024-11-18 12:36:13