So I have decided to create an all original Naruto game
and since I am new to coding I have a problem.
When using Bunshin No jutsu (Cloning) I can create a
stationary clone but can anyone offer a piece of coding
or help so that the user can click on a turf and it will
go there?
I really need help please.
ID:162492
Dec 30 2007, 8:43 pm
|
|
In response to Garthor
|
|
Garthor wrote:
Slayde wrote: Come on, everybodies doing it! |
In response to Obs
|
|
I know nobody likes Naruto games on BYOND.
But this is just for fun, It isnt a RIP off of anything, heck even the iconing is from scratch. It is more of a Ninja game and isnt like 'Select Clan > Select Village > Genin Exam' There will be alot of freedom in it. Anyway thanks for your help, I will give it a shot ^_^ |
In response to Obs
|
|
Obs wrote:
Garthor wrote: Failing? I've noticed. |
In response to Slayde
|
|
Aww man, still won't work.
Can anyone post a snippet of sample coding or something please. I am stuck :L |
In response to Slayde
|
|
Slayde wrote:
I know nobody likes Naruto games on BYOND. Except 4000 of 4250 people. |
I've bolded the precise point at which you failed.
As for what you want to do: store the object you want to move in a variable belonging to the player. Something like mob/var/mob/clone. When you create a clone, assign the clone variable to the clone you just created. In client/Click(), check if usr's (or mob's, they're the same here) clone variable is non-null. If it is, call walk_to() to move usr.clone.