利用Tweener製作動畫 – 貝茲曲線
在看過前面一篇Tweener基礎篇之後,應該會發現我們的動畫元件雖然可以依照不同的模式移動,但是在路徑上還依然是保持直線移動,而這一篇文章就要來示範如何讓元件利用貝茲曲線來產生移動路徑,至於甚麼是貝茲曲線?大家可以參考維基百科上面的說明,這邊就不贅述了。
在Tweener的官方網站裡有提供一個貝茲曲線產生器的Flash動畫讓大家下載,不過由於官方示範這個貝茲曲線產生器所使用的是舊版本的Tweener Class,所以在程式碼範例上有些缺失,馬老師這邊提供我修改過且進行中文化後的範例供大家下載

範例中Add Bezier Point是增加節點,Remove Point是刪除節點,利用這些功能並拖曳上面的範例曲線,就可以製作出你想要移動的路徑,接下來請先把「需要先被匯入與執行的Tweener」三行指令放置在程式碼的最前面,接著再把「Tweener動畫指令」貼上即可!這樣一來以後連製作這樣的路徑也會變得很方便了!
整個動畫的程式碼如下,也提供利用此效果製作的動畫檔給大家參考:
import caurina.transitions.Tweener import caurina.transitions.properties.CurveModifiers CurveModifiers.init() Tweener.addTween(ball, {x:475, y:80, _bezier:[{x:150, y:43}, {x:71, y:206.5}], time:1, transition:"linear"});
希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
Quicken-Checkbook-2012 keygen
bd86983c93 orlokeyn
Karnataka Pwd Schedule Of Rates 2012-13 Pdf 14
bd86983c93 tagijan
3d sex villa 2 game for android free downloadgolkes
bd86983c93 kersop
Sniper Elite Nazi Zombie Army 2 Coop Crack
bd86983c93 gablam
amategeko y’umuhanda ibibazo n’ibisubizo pdf 1207
bd86983c93 olonilin
is erythromycin a sulfa drug erythromycin medication
codeware compress 7400 crack 18
bd86983c93 netsali
xforce keygen 64bits AutoCAD 2019
bd86983c93 annicha
xforce keygen BIM 360 Field 2010 32 bit free download.exe
bd86983c93 giandel
I enjoy your blog posts, saved to my bookmarks!
cheap cialis uk cialis pills cialis in canada pharmacy
Download The Kaal Movie Torrent
bd86983c93 diskay
sewage disposal and air pollution engineering sk garg pdf free download
bd86983c93 lorrana
Gods Demons And Others Pdf Download
bd86983c93 beturebe
I do believe your audience could very well want a good deal more stories like this carry on the excellent hard work.
nfs underground trainer 1.1001.0 12
bd86983c93 weaverd
xforcekeygen64bitRobotStructuralAnalysisProfessional2009key
bd86983c93 indiflo
I appreciate, cause I found just what I was looking for. You’ve ended my four day long hunt! God Bless you man. Have a great day. Bye -.
generic cialis india safe tadalafil 20mg best price black ants cialis australia
Some truly nice stuff on this website , I like it.
That’s some inspirational stuff. Never knew that opinions might be this varied. Thanks for all the enthusiasm to supply such helpful information here.
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again soon!
https://erythromycin1m.com/# is erythromycin safe during pregnancy
cialis viagra australia tadalafil without a doctor’s prescription arghentina cialis
erythromycin ophthalmic ointment for newborns erythromycin ophth ointment 3.5 gm
erythromycin online erythromycin ophthalmic ointment usp
cialis 20 mg tablets and prices generic tadalafil 20mg india cialis as generic
https://ovinbio.fr/ins1d10us2720h3vc-downloadhu-b-net-mkv/
75260afe70 benecar
http://www.kotakenterprise.com/?p=33700
75260afe70 benbae
https://kephirastore.com/2022/05/26/girlzz-1-81-imgsrc-ru/
75260afe70 osgblo