Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums adding a tilt angle
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 06-11-2002, 01:17 PM #1 rgarimella Registered User   Join Date: Jun 2002 Posts: 12 adding a tilt angle Hi All, I was Planning to Move a Sphere on a YZ or XZ plane. With the code below, I can only move it on the Z Axis. Any ideas how i can add an tilt angle to it. Thanks in advance. The code is from a tutorial on this site. Ravi onClipEvent(load){ radius = 200; perspective=500; degrees=0; } onClipEvent (enterFrame){ angle=degrees * (Math.PI/180); degrees += 2; xposition=radius*Math.cos(angle); zposition=radius*Math.sin(angle); distance = 1 /(1-(zposition / perspective)); this._x=(xposition * distance) + _root.center_cross_hairs._x; this._y=_root.center_cross_hairs._y; this._xscale = distance * 100; this._yscale = distance * 100; _root.center_cross_hairs._visible=0; }
 06-11-2002, 01:34 PM #2 pinkaboo power to the pinK     Join Date: Jul 2001 Location: Atlanta Atlanta ATLANTA! Posts: 1,527 [crosspost] other thread

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

 Similar Threads Thread Thread Starter Forum Replies Last Post alphadork Simple Stuff (Newbies) 6 03-17-2006 08:40 PM P]-[IL ActionScript 2.0 0 02-17-2004 09:50 PM arai_speed ActionScript 1.0 (and below) 0 01-09-2004 04:20 PM rgarimella ActionScript 1.0 (and below) 0 06-11-2002 01:25 PM Andrue ActionScript 1.0 (and below) 1 10-28-2001 05:22 AM

All times are GMT. The time now is 01:17 AM.

///