| View previous topic :: View next topic |
| Author |
Message |
Leonidasphp
Joined: 25 Feb 2005 Posts: 305
|
Posted: Sat Feb 02, 2008 9:51 am Post subject: js:when we move items with differ angles how to change image |
|
|
when we move items with differ angles on screen 30 degrees after 90 after 245 degrees and we need to change images how we achieve this change ? eg a rocket moves and go around screen in random direction ?
using DHTML ,<div> ,... |
|
| Back to top |
|
 |
lostboy

Joined: 02 May 2004 Posts: 6033 Location: toronto, canada
|
Posted: Sat Feb 02, 2008 6:38 pm Post subject: |
|
|
| use dhtml and <div>s...your icon can be in the div on a transparent background and you can use dhtml (js) to move the object around |
|
| Back to top |
|
 |
Leonidasphp
Joined: 25 Feb 2005 Posts: 305
|
Posted: Sat Feb 02, 2008 7:29 pm Post subject: eg during a rocket flight I want differ images how to interc |
|
|
| eg during a rocket flight I want differ images how to interchange them ? |
|
| Back to top |
|
 |
lostboy

Joined: 02 May 2004 Posts: 6033 Location: toronto, canada
|
Posted: Sat Feb 02, 2008 9:37 pm Post subject: |
|
|
| you can use js to switch the images based on whatever criteria at whatever time during the 'flight' you want |
|
| Back to top |
|
 |
Leonidasphp
Joined: 25 Feb 2005 Posts: 305
|
Posted: Mon Feb 04, 2008 7:32 am Post subject: How I make the movement go to randomly direction(s) ? |
|
|
| How I make the movement go to randomly direction(s) ? I must use random() ? |
|
| Back to top |
|
 |
lostboy

Joined: 02 May 2004 Posts: 6033 Location: toronto, canada
|
|
| Back to top |
|
 |
Leonidasphp
Joined: 25 Feb 2005 Posts: 305
|
Posted: Tue Feb 05, 2008 10:46 am Post subject: I know to use random() , but how apply it to random image mo |
|
|
| How I make the movement go to randomly direction(s) ? I know to use random() , but how apply it to random image movement ? |
|
| Back to top |
|
 |
lostboy

Joined: 02 May 2004 Posts: 6033 Location: toronto, canada
|
|
| Back to top |
|
 |
|