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.


All times are GMT +2. The time now is 11:48 AM.

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