Pleng
03-13-2008, 09:30 PM
Hi guys
Firstly I'd like to say a great big THANK YOU for Novashell. It seems to be, from what I can see, the most powerful & versatile cames creation system around that's actually easy to pick up and use!
I've had great fun playing around with the Tree Demo and am creating a new project based on it.
What I need to do, though, is make it so that the player won't stop moving until another direction is selected, or he hits a wall.
Ie player starts off on the map standing still, but after the player presses right he will continue to move right unless he comes to a wall, or the player presses left. The same to be true when the player is moving left.
My limited scripting experience leads me to believe I need to be doing something with the OnLeft(bKeyDown) and OnRight(bKeyDown) functions in ent_player.lua, but I simply can't figure out exactly what I have to do.
Any help would be greatly appreciated.
Firstly I'd like to say a great big THANK YOU for Novashell. It seems to be, from what I can see, the most powerful & versatile cames creation system around that's actually easy to pick up and use!
I've had great fun playing around with the Tree Demo and am creating a new project based on it.
What I need to do, though, is make it so that the player won't stop moving until another direction is selected, or he hits a wall.
Ie player starts off on the map standing still, but after the player presses right he will continue to move right unless he comes to a wall, or the player presses left. The same to be true when the player is moving left.
My limited scripting experience leads me to believe I need to be doing something with the OnLeft(bKeyDown) and OnRight(bKeyDown) functions in ent_player.lua, but I simply can't figure out exactly what I have to do.
Any help would be greatly appreciated.