Python 8 way Movement

Post your own tutorials, guides and demos.

Post » Mon May 16, 2011 3:56 pm

[url:3s3puqqi]http://dl.dropbox.com/u/7658043/Python8WayMovement.cap[/url:3s3puqqi]

Basic 8 way movement using python script.Make sure script is enabled before running the cap.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Aug 31, 2011 5:24 pm

In what advantage of a python script?
B
8
S
2
G
2
Posts: 48
Reputation: 921

Post » Wed Aug 31, 2011 6:11 pm

It's just a demonstration of Python's ease of use, I suppose. The lack of MouseKeyboard support in Python Scripting (or lack of documentation for using it there) makes things a lot harder.

Still, I think I would recommend to DravenX that he use the traditional GM method - 'hspeed' and 'vspeed' private variables controlled by keyboard inputs to create smooth movement. (It's hard to explain. Just remember "horizontal speed" and "vertical speed" and you'll be able to figure it out.)
B
8
S
2
G
6
Posts: 44
Reputation: 3,007


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 3 guests