Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 2nd Jul 2009 02:59
Just out of curiousity, is it possible to have the player follow waypoints? If so, how could one go about scripting that?
Gunn3r
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Portland, OR
Posted: 2nd Jul 2009 08:06
It's actually a bit complex, so I wrote out a tutorial a while back. http://forum.thegamecreators.com/?m=forum_view&t=120901&b=21

NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 2nd Jul 2009 21:27
Thank you, Gunn3r, for the tutorial. I have one last problem. Due to the sheer size of my map, I feel it appropriate to make the platform speed = 150. My player, whose speed is = 1, falls off the platform occasionally. How could I go about locking the player onto the platform?
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 4th Jul 2009 12:41
i made an on-the-rails game (see fireteam bravo in W.I.P) and yeah, i had this problem to. don't know how to fix it though...

shadowfire productions - where everything's awesome
(please tell me if anything i have said is non-constructive)
NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 4th Jul 2009 15:22
I was looking into this problem earlier and while it is possible to use PLRFREEZE command, still only the player is immobile. Anyway, I will try to make a script for the platform to "stick" to the player.

Actually, I browse around the boards just to critique stories to make them more original, it seems that many are doing the "Shoot everyone in your sight"
-Light Samus
NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 4th Jul 2009 16:39
So I tried scripting for the player to be locked onto the platform (probably the fourth time I've scripted ever) and created a variation of follownorotate. I left the game to see if the player is still on the platform and much to my dismay, the player is off the platform. Below is my script:


If anyone could help with this that would be greatly appreciated.

Actually, I browse around the boards just to critique stories to make them more original, it seems that many are doing the "Shoot everyone in your sight"
-Light Samus
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 5th Jul 2009 15:36
i looked at your script and i can just about tell you what it does.

1. presumably the scripts tell the platfrom to associate itself with the player, and not to rotate.

2. if the player is alive, he cannot move.

3. follow waypoints.

i don't see a command that tells the player to stick to the platform anywhere in this script, you might need some proffesional advise.

shadowfire productions - where everything's awesome
(please tell me if anything i have said is non-constructive)
NiGHTS
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location:
Posted: 6th Jul 2009 16:32
After multiple attempts, I have created a working "lock platform" script, a variation of multiple existing scripts. This will freeze the player and if by the odd chance the player moves even slightly, he is brought back to the platform. It is best to use this script when the player speed = 1, to ensure he is immobile.



Actually, I browse around the boards just to critique stories to make them more original, it seems that many are doing the "Shoot everyone in your sight"
-Light Samus

Login to post a reply

Server time is: 2024-11-25 03:54:29
Your offset time is: 2024-11-25 03:54:29