Hadap ke mouse

Scriptnya sangat sederhana sekali

 

onSelfEvent (load) {

    var dx,dy;

    var clip = arrow;

}

onFrame (1) {

    this.onEnterFrame = function(){        

        dx = _xmouse - clip._x;

        dy = _ymouse - clip._y;

        clip._rotation = Math.atan2(dy, dx)*180/Math.PI;

    }

    stop();

}

hepi swishing

Comments  

 
+1 # isma 2010-01-07 08:20
bagus :lol:
Reply | Reply with quote | Quote
 
 
0 # sukseseko13 2011-03-27 18:26
mas bisa gak buat garis otomatis
misal jika si 1 memilih si 2
maka otomatis ada garis panah menunjuk dari 1 ke 2
he...

makasih
Reply | Reply with quote | Quote
 
 
0 # RE: suksesawalsadja 2011-03-27 23:03
mas eko13, pertanyaannya dipindah ke forum aja mas.
di sini http://djagoswish.web.id/forum-diskusi/5-tanya-jawab.html

biar bisa attach file juga :lol:
makasih
Reply | Reply with quote | Quote
 

Add comment

- Link file attachment tertampil setelah Anda login.
- Harap memberi komentar positif.
- Tidak diperkenankan menulis dengan huruf besar semua (Capslock).
- Komentar Anda akan diverifikasi sebelum ditampilkan.


Security code
Refresh

You are here Tutorial Swishmax Script Hadap ke mouse