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 04-27-2001, 01:42 AM
Cyboars Cyboars is offline
Registered User
Cyboars's Avatar
Join Date: Mar 2001
Location: Everwhere.
Posts: 209
Cyboars will become famous soon enough
Send a message via AIM to Cyboars Send a message via Yahoo to Cyboars
I need it where when you touch it and/or it touches a wall it goes the opisite direction(left and right).
__________________


Returned to Graal 2/1/02
Reply With Quote
  #2  
Old 04-28-2001, 03:59 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool ok...

It is something like this...

//KJL's Example
if (onwall(x,y)&&me.go.right==1){me.go.right=0}
if (onwall(x,y)me.go.right==0){me.go.right=1}
if(playerenters){timeout=1;}
if(timeout){
if(me.go.right==1){x+=1}
if(me.go.right==0){x-=1}
timeout=1;
}


//NOTE: I did this off the top of my head so I dont
// know how much of it works. I think all of
// it will work perfectly fine
__________________
Thanks,
-KJL
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 03:52 PM.


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