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 12-12-2001, 01:26 PM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
X/Y Moving

Is there anyway I could make something so that if the player touchs the npc, they will move left or right slowly until they reach the X coordinate and then move up/down until they reach the Y coordinate?

I want it to be able to be done anywhere on screen and still end up in the same place. Its for a chapel level, it is long, so I want to make it so when a person sits down, an npc of them is put in their place and they are made invisible... they slowly move to the X and then to the Y so that they can be sitting in the ver back, yet can see the main part of the level. Also, when they say "back" it needs to put them back in the place and get rid of the npc.

I dunno if it can be done, im more of an LAT than an NAT so I need help lots lol.
Reply With Quote
  #2  
Old 12-12-2001, 10:08 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
To make the player move slowly your gonna need increment x by less than one like say, .5, and to make the player totally invisible you could use just remove 1024 from the showstats, if you dont know how to do that I sure either I will explain or someone else will.
Reply With Quote
  #3  
Old 12-13-2001, 07:57 AM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
But is there a way that if you use the npc from ANYWHERE it will move you to the location without having to constanltly put
x+=.5;sleep .2;etc etc until they reach it?
Reply With Quote
  #4  
Old 12-13-2001, 08:20 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
use a for loop that stops when you get to the right x or y
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 05:47 AM.


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