[AS 2.0] Elastic의 기본

ActionScript 2.0 — Tags: , , — Siaa @ 11:14 am
var SpeedX:Number = 0.2;  //탄성움직임의 속도
var TargetX:Number = 100;  //탄성움직임 목표값

obj._x = obj._x + SpeedX*(TargetX - obj._x);
  • Share/Bookmark
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2010 blog.flasia.com | powered by WordPress with Barecity