Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-02-2002, 06:32 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
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.
Reply With Quote
  #2  
Old 02-02-2002, 06:55 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
Post

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);
}
}
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #3  
Old 02-02-2002, 07:15 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
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.
Reply With Quote
  #4  
Old 02-02-2002, 08:08 AM
Wes2000 Wes2000 is offline
Registered User
Join Date: Dec 2001
Posts: 57
Wes2000 is on a distinguished road
Send a message via AIM to Wes2000
He is just helping. you shouldnt get mad at him.
__________________
Reply With Quote
  #5  
Old 02-02-2002, 08:09 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
omg
Quote:
new scripters
forget you dude, you dont even know me
__________________
Lomgren - devoted to classic, even though I may be gone for months on end

Last edited by Lomgren; 02-02-2002 at 08:28 AM..
Reply With Quote
  #6  
Old 02-02-2002, 08:12 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
No profanity please.
I have posted the player race movement scripts
some months ago on the forums
(new races forum i think)
Reply With Quote
  #7  
Old 02-02-2002, 08:20 AM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
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
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #8  
Old 02-02-2002, 08:33 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
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.
Reply With Quote
  #9  
Old 02-02-2002, 08:58 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
lol, Stefan, that was lot of help
__________________
Reply With Quote
  #10  
Old 02-02-2002, 09:22 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 02-02-2002, 09:30 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #12  
Old 02-02-2002, 10:12 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
I think someone said that, about diaganol movements and npc's... He said it wouldn't work, I forget why though =(
__________________
Reply With Quote
  #13  
Old 02-02-2002, 12:42 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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.
Reply With Quote
  #14  
Old 02-02-2002, 01:20 PM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
Well if graal added .x model support then we could easily add 8 directional movement. Hmm, and if wanted, angular movement...
Reply With Quote
  #15  
Old 02-03-2002, 02:10 AM
Frolic_RC2 Frolic_RC2 is offline
Banned
Join Date: Jan 2002
Posts: 960
Frolic_RC2 is on a distinguished road
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:04 AM.


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