how do i make a NPC move forward and move back?
i tried
setcharani ("walk",NULL) ;
aaand it doesnt walk but does the animation
how do i make a NPC move forward and move back?
i tried
setcharani ("walk",NULL) ;
aaand it doesnt walk but does the animation
temp.a = this.x
temp.b = this.y
Incrementing this.x makes it go horizontally sideways
Incrementing this.y makes it go vertically upwards / downwards
Put it in a loop that increments the x / y value.
Don't forget to put the gani in the loop as well.
For style points,make sure the npc is facing the right direction.
Last edited by leaf me alone; 01-25-2017 at 01:58 AM.
How do people understand that language????????
Ask me anything and ill try my best to answer
It's easy.
In real life, to say tell somebody to change their body you say "change your body" but in Graal, you say "this.body = "body_nicholas.png" ;
I don't really recommend help from others, but ask when you need to.
What I recommend is to become a admin on a Dev. Server on PW and Press F9 or type /NPC and then press on the NPC's and examine them, add a new NPC and script it. You will remember it.
And trav, thank you. I haven't been able to check it out because my laptop screen is black but turns on eh..
So, does scripting take more of the Java side or C++ side? I want to learn but I want to learn one programming language at a time.
"A fool thinks they know everything but a wise person knows there's something to learn from everyone"
-
"Great leaders don't complain about the tools they are given. They work to sharpen them"