|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
go to http://www.dansteinman.com he has some examples and tutorials there on these lines
------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#4
|
|||
|
|||
|
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. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Making a layer "do a curve" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|