HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2000, 02:28 AM
paasonen paasonen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 1 paasonen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've been workin' on this for a sometime now. I have a picture of an arrow in a layer that should move smoothly from a certain point to the left edge of the screen and disappear there. This is not the problem. The problem is to make it "fly in a curve", like a real object shot in the air.

And - needless to say - it should work with both 'Scape & MSIE. Can anyone help me? Ple-ee-ase? URL

Reply With Quote
  #2  
Old August 21st, 2000, 05:53 AM
Richard Vos Richard Vos is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Netherlands
Posts: 32 Richard Vos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
In Dreamweaver you can make the layers move using a timeline. After you make a simple movement (eg. flying a straight line); afterwards you can watch the code and learn from it.
Then you should apply your function (a half sinus?)to make the route of the arrow and let it use it to update the 'top' and 'left' position.

Richard.

Reply With Quote
  #3  
Old August 21st, 2000, 09:34 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
go to http://www.dansteinman.com he has some examples and tutorials there on these lines

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #4  
Old August 23rd, 2000, 09:14 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 9
In a nutshell, you want to figure out the equation for the curve you want it to follow. Then, convert that equation to JavaScript and use your function to get coordinates from the equation for plotting the new position of the object.

Dreamweaver is simpler, but its scripts tend to be large. If mathematics isn't your strong point, however, I would recommend it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Making a layer "do a curve"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway