Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Graals 8 directional movement script... (https://forums.graalonline.com/forums/showthread.php?t=22785)

Frolic_RC2 02-02-2002 06:32 AM

Graals 8 directional movement script...
 
Can Stefan or someone post the 8 dir movement with perfect..everything..on here? I want to redefine movement, but I don't have the mathematical skill to get it perfect....

Someone please post it...thanks.

Lomgren 02-02-2002 06:55 AM

I'm pretty sure that is done with a 'noob code' you know like;

if (keydown(0)){
playery--;
}
and so on,

but then again, I suppose there is nothing stopping this from producing the same effect;

for (i=0; i<4; i++) {
if (keydown(i)) {
playerx+=vecx(i);
playery+=vecy(i);
}
}

Frolic_RC2 02-02-2002 07:15 AM

Damnit I don't want any new scripters trying to give me an answer to this, I already made a very advanced movement system. I just need Stefans so I have a bug free version.

Wes2000 02-02-2002 08:08 AM

He is just helping. you shouldnt get mad at him.

Lomgren 02-02-2002 08:09 AM

omg
Quote:

new scripters
forget you dude, you dont even know me

Admins 02-02-2002 08:12 AM

No profanity please.
I have posted the player race movement scripts
some months ago on the forums
(new races forum i think)

Faheria_LAT1 02-02-2002 08:20 AM

Quote:

Originally posted by Stefan
No profanity please.
I have posted the player race movement scripts
some months ago on the forums
(new races forum i think)

I think its the zip here:
http://forums.graal2001.com/forums/s...5&pagenumber=3

Frolic_RC2 02-02-2002 08:33 AM

Quote:

Originally posted by Stefan
No profanity please.
I have posted the player race movement scripts
some months ago on the forums
(new races forum i think)

Sorry about that, I just hate it when people post things I didn't ask for...anywho thanks alot =) I found it.

zell12 02-02-2002 08:58 AM

lol, Stefan, that was lot of help :rolleyes:

Saga2001 02-02-2002 09:22 AM

okies. :). i wanted to make a good suggestion to stefan, i am going to post it in the improvements, but i wanted to mention it here. i think that instead of like up, down left, right there were up, up-left, up-right, left, right, down left, down-right. maybe in the new enging, and it could have better body positions and all... i think that could make graal a lot cooler...

joseyisleet 02-02-2002 09:30 AM

Good idea Saga. It would be nice to be able to walk diagonally and swing while walking diagonally in Graal. It would improve gameplay very much. ;D

zell12 02-02-2002 10:12 AM

I think someone said that, about diaganol movements and npc's... He said it wouldn't work, I forget why though =(

royce 02-02-2002 12:42 PM

Graal is based on a x and y axis, just like a graph. Each individual tile is broken down and only vertical and horizontal movements can be drawn on a x and y axis. Maybe using negatives might work if you catch my drift. Think of a negative graph, if the levels were positions so that the center was 0. That actually might work.:confused: :megaeek:

Frolic_RC2 02-02-2002 01:20 PM

Well if graal added .x model support then we could easily add 8 directional movement. Hmm, and if wanted, angular movement...

Frolic_RC2 02-03-2002 02:10 AM

Quote:

Originally posted by Kaimetsu
Just a point... There's not really any maths in this movement stuff. It's just logic, really.
Take a look at it. It may not be math, but its...well it is math...hehe. Its multiplying all these variables in the dirgo, the bush detection,onwall detection...tons of complicated confusing stuff...I hate movement script. AI and movement are the hardest things for me to do >_<

Then again, math is logical, making your statement valid anyway.

Frolic_RC2 02-03-2002 02:16 AM

Quote:

Originally posted by Kaimetsu


I don't need to take a look at it, I made my own movement script a month or so ago. It has multiplication in parts, perhaps, but that doesn't really make it a mathematical problem. Just a complicated problem.

Ok, so its not mathematical, its just complicated. I usually would need to spend alot of time to create something like that movement script, and why do that when you could just get a perfected one already made? I don't want to waste hours making something like that anyway, as I said, I hate movement and AI...

Frolic_RC2 02-03-2002 02:29 AM

Quote:

Originally posted by Kaimetsu
I personally made my own because I wanted to be able to customise it and, due to my own scripty insecurity, didn't trust Stefan's.
Heh, I obviosly need to customize mine, but its very easy to just do that with Stefan's. Heh, then again it would be alot better to know you created the script from scratch and would need to add a credit to Stefan thing at the top (which I think any honorable person would do)...but its not like I'm taking a bomy script or anything. I'm getting the most basic version of movement, its like using a script command as a shortcut from having to script the command...

Frolic_RC2 02-03-2002 02:40 AM

Quote:

Originally posted by Kaimetsu
*shrugs*

I wouldn't be able to stomach using somebody else's code when I could make my own, but it's all your choice. Don't let my views influence you.

Well you are using someone else's code simply by using the graal engine. Scripting is using someone elses code, not defining the movement is using someone elses code. Get what I mean? Even if I didn't use a new movement system, I would still be using the one Stefan coded into the EXE...

This does not mean I believe in taking other peoples script, it just means for things like this (things already coded into the exe, things made by Stefan which he gave permission to use) I don't view it as taking code from someone. Same would be, for instance, if I got the built in attack code, or the built in addtiledef for pics1.png...get what I mean?

Frolic_RC2 02-03-2002 02:50 AM

Quote:

Originally posted by Kaimetsu
I know what you mean, I just try to recode as much as I can. Some things I can't change, so I live with that, but I like to make as much as possible my own.
Heh, same with me, but I like everything I need flawless. Movement is something which would take me a long time to get flawless, and I would rather take a shortcut. This has been, in fact, the only NPC which will be based on something Stefan scripted...plus, its not like anybody will know about it without reading this thread, so it all works. Although...I do plan on having credits at startup...hehe :D

Frolic_RC2 02-03-2002 03:20 AM

Quote:

Originally posted by Kaimetsu


No script is flawless, there'll almost always be a faster way of doing something.

Flawless meaning bug free, gets the job it needs to done without flaw...speed is a whole different story. No matter what ANYONE says, speed can always be enhanced...

btedji 02-04-2002 02:26 AM

Someday graal will have little or no more hard coded material and servers will have to make their own systems which will allow for a lot more creativity


All times are GMT +2. The time now is 03:58 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.