making the player move faster

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

making the player move faster

Post by darksmaster923 »

is there a way to make the player move faster? i found a way but its too glitchy.
Herp derp.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

You can define the player's speed in the EnvironmentSetup entity.
Pain is only psychological.
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

talking bout in scripts, i want the player to move faster when i press a button
Herp derp.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

look at the sample scripts that came with RF. There must be something like 'genericplayer.s'. First try out what it does when you press the arrow keys and then see what it does when you press shift and the arrow keys.

In this file they moved the player at the end of each frame and they had a value that was called SPEED which was modified to modify the speed the player moves. If you then look through the script it should become clear how they used it. (i hope so)
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

im talking about the built in player
Herp derp.
User avatar
QuestOfDreams
Site Admin
Posts: 1525
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

The built in player has exactly 2 speeds: walk and run. You can't change this by scripting.
Post Reply