Reply
 
Thread Tools Display Modes   
 
 
Old 22/02/2008, 16:24 Reply With Quote   #1
exavolt
god admin monyet
Twisted minded coder!
 
exavolt's Avatar
 
Join Date: Oct 2003
Location: JakJog~
Posts: 1,936
exavolt has disabled reputation
Send a message via Yahoo to exavolt exavolt is offline
nih ada banyak algo: http://en.wikipedia.org/wiki/Pathfinding
__________________
exavoltism on how to be a Game Developer:
1:1 - Know English
1:2 - Start from simple thing like saying hello to the world
1:3 - Know what are Google and Wikipedia and know how to use them
Please respect Netiquette within this forum.
   
 
 
Old 22/02/2008, 16:26 Reply With Quote   #2
alijaya
GDI Power Users
 
alijaya's Avatar
 
Join Date: Dec 2007
Location: Pangkalpinang
Posts: 3,285
alijaya is on a distinguished road
Send a message via Yahoo to alijaya alijaya is offline
aw gak nyangka panjang amat script nya
oh ya ini pake flash.
__________________
tobat ngejunk. tobat nyepam. tobat bikin yang gak bener. tobat kasih komen gak jelas. tobat buang-buang ikon. tobat jadi orang jelek. tobat maen komputer sambil belajar. tobat banget kalo ngomong gak bertanggung jawab. tobat banget untuk kesalahan laennya.
"siapa yang mau ikut2an tobat??"
blog : http://alijaya.wordpress.com/, http://bothaxe.wordpress.com/
   
 
 
Old 22/02/2008, 16:44 Reply With Quote   #3
Fandrey
Pengamen
 
Fandrey's Avatar
 
Join Date: Aug 2007
Location: Neverland
Posts: 3,713
Fandrey is on a distinguished road
Send a message via Yahoo to Fandrey Fandrey is offline
tanya, base tiling engine-nya dari tonypa ya? just courious...
   
 
 
Old 22/02/2008, 16:54 Reply With Quote   #4
Clawford
Administrator
 
Clawford's Avatar
 
Join Date: Oct 2005
Location: In Front of My PC.......
Posts: 423
Clawford is on a distinguished road
Send a message via Yahoo to Clawford Clawford is offline
kok diklik di tempat yg sama itu beda2 ya path nya? (hayoo pake apa ini? )

biasanya algoritma path finding kalo kombinasi pathnya kecil ga gitu kerasa perbedaannya.
   
 
 
Old 22/02/2008, 17:22 Reply With Quote   #5
wandah_w
Dumb Flash Scripter
 
wandah_w's Avatar
 
Join Date: Apr 2005
Location: malang
Posts: 1,397
wandah_w is on a distinguished road
Send a message via Yahoo to wandah_w wandah_w is offline
Wah scriptnya kok aneh, aslinya gak seperti itu kok!
Udah kamu replace beberapa variable ya :
seperti "_l2" kamu replace jadi "nama".
"_l6" kamu replace jadi "namaatas"

dan beberapa variabel lagi yang kamu replace.
Nice Try Ali!
__________________
http://wandah.com
   
 
 
Old 22/02/2008, 17:30 Reply With Quote   #6
wandah_w
Dumb Flash Scripter
 
wandah_w's Avatar
 
Join Date: Apr 2005
Location: malang
Posts: 1,397
wandah_w is on a distinguished road
Send a message via Yahoo to wandah_w wandah_w is offline
Script seperti ini ditulis oleh Tonypa dan Earl Vergara beberapa waktu yang lalu, sayangnya aku kesulitan mencari sourcenya. Udah kelupaan meletakkannya dimana.

Bukannya bermaksud menuduh, mungkin kebetulan saja sama.
Script yang kubaca sebelum mendecompile punyakmu hariini kebetulan sama persis dengan yang kubaca dari tutorial mereka beberapa bulan yang lalu.
Fungsi2 nya juga sama persis, menggunakan setIndex, MakePath dsb

Bedanya tonypa enggunakan cirikhasnya dalam menulis variabel yaitu didahului dengan garis bawah "_"

Biar gak keliatan asal nebak ini kukutipkan beberapa baris script buatan Tony:
Code:
function setIndex(ob, map) { ob.index = new Object(); var _l11 = map[0].length; var _l12 = map.length; for (i = 0; i < _l12; i++) { for (j = 0; j < _l11; j++) { var _l3 = "t_" + i + "_" + j; ob.index[_l3] = new Object(); ob.index[_l3].shortPath = undefined; ob.index[_l3].maxPossible = 0; ob.index[_l3].source = new Array(); ob.index[_l3].destiny = new Array(); } } ob.index["t_" + ob.Ytile + "_" + ob.Xtile].shortPath = 0; ob.index["t_" + ob.Ytile + "_" + ob.Xtile].maxPossible = 1; var _l2 = []; var _l8 = [{Ytile: ob.Ytile, Xtile: ob.Xtile}]; while (_l8.length != 0) { _l2 = _l8; _l8 = []; for (n = 0; n < _l2.length; n++) { _l3 = "t_" + _l2[n].Ytile + "_" + _l2[n].Xtile; var _l6 = "t_" + (_l2[n].Ytile - 1) + "_" + _l2[n].Xtile; var _l7 = "t_" + (_l2[n].Ytile + 1) + "_" + _l2[n].Xtile; var _l4 = "t_" + _l2[n].Ytile + "_" + (_l2[n].Xtile - 1); var _l5 = "t_" + _l2[n].Ytile + "_" + (_l2[n].Xtile + 1); if (game[_l6].walkable == true) { if (ob.index[_l6].shortPath == undefined) { ob.index[_l6].shortPath = ob.index[_l3].shortPath + 1; ob.index[_l6].maxPossible = ob.index[_l6].maxPossible + ob.index[_l3].maxPossible; ob.index[_l3].destiny.push({Ytile: _l2[n].Ytile - 1, Xtile: _l2[n].Xtile}); ob.index[_l6].source.push({Ytile: _l2[n].Ytile, Xtile: _l2[n].Xtile});
Kalo kubaca ulang, peletakan baris dan lokasi fungsinya sama persis dengan buatan Ali.
Mungkin hanya kebetulan saja.

But so far, Nice job
__________________
http://wandah.com
   
 
 
Old 22/02/2008, 18:26 Reply With Quote   #7
M4x L0r3n
Member
 
M4x L0r3n's Avatar
 
Join Date: Feb 2008
Location: Surabaya
Posts: 133
M4x L0r3n is on a distinguished road
Send a message via MSN to M4x L0r3n Send a message via Yahoo to M4x L0r3n M4x L0r3n is offline
KerEen AmPun Om!!!!!!!!!!!!!!!!!!

ajari logikanya donk
   
 
 
Old 22/02/2008, 19:37 Reply With Quote   #8
alijaya
GDI Power Users
 
alijaya's Avatar
 
Join Date: Dec 2007
Location: Pangkalpinang
Posts: 3,285
alijaya is on a distinguished road
Send a message via Yahoo to alijaya alijaya is offline
yah udah ada yang pake ya .
duh padahal susah2 mikirnya.
@wandah:itu kok _111, varnya kok gitu???
@M4x L0r3n:aku bukan om2. masih smp kelas 2.
__________________
tobat ngejunk. tobat nyepam. tobat bikin yang gak bener. tobat kasih komen gak jelas. tobat buang-buang ikon. tobat jadi orang jelek. tobat maen komputer sambil belajar. tobat banget kalo ngomong gak bertanggung jawab. tobat banget untuk kesalahan laennya.
"siapa yang mau ikut2an tobat??"
blog : http://alijaya.wordpress.com/, http://bothaxe.wordpress.com/
   
 
 
Old 22/02/2008, 21:25 Reply With Quote   #9
M4x L0r3n
Member
 
M4x L0r3n's Avatar
 
Join Date: Feb 2008
Location: Surabaya
Posts: 133
M4x L0r3n is on a distinguished road
Send a message via MSN to M4x L0r3n Send a message via Yahoo to M4x L0r3n M4x L0r3n is offline
Quote:
Originally Posted by alijaya View Post
@aku bukan om2. masih smp kelas 2.
gax penting!!! gax usah dijawab

trims atas bagi2 logikanya

wew mase kelas 2 SMP ampun adik kelas !!!!!!!!!!!!!!!

Last edited by M4x L0r3n : 22/02/2008 at 21:28. Reason: kurang
   
 
 
Old 22/02/2008, 21:29 Reply With Quote   #10
wandah_w
Dumb Flash Scripter
 
wandah_w's Avatar
 
Join Date: Apr 2005
Location: malang
Posts: 1,397
wandah_w is on a distinguished road
Send a message via Yahoo to wandah_w wandah_w is offline
Quote:
Originally Posted by alijaya View Post
yah udah ada yang pake ya .
duh padahal susah2 mikirnya.
@wandah:itu kok _111, varnya kok gitu???
@M4x L0r3n:aku bukan om2. masih smp kelas 2.
bukan 1 3 kali tapi _l11 itu _ L 11

Kenapa kutunjukan script tadi, bukan maksud menuduh anda mengcopy script orang laen. Cuma kok kebetulan saja semua barisnya mirip. Biasanya walaupun logikanya sama, biasanya cara nulisnya gak sama.
Masalahe ini kok kebetulan sama persis cuma di replace saja nama variabelnya. Jadi ya kebetulan yang bener2 jarang terjadi
__________________
http://wandah.com
   
   Reply « Previous Thread| Next Thread »     


Thread Tools
Display Modes

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


All times are GMT +7. The time now is 06:18.


skin developed by: uray
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.