04.01.2016, 21:52
Hi. I've just started to learn how to code in Squirrel and this script was the first solution I've ever written in it. It's clickable animation menu, so you can use your mouse to control it. When the menu appears, player and camera movement is blocked. However, I highly recommend to change your cursor sensitivity using:
As you are going to see, the cursor is always centered. It doesn't allow certain bug to occur. Also, there's one problem. Script is in polish, but it won't be an issue to translate it. Here is the script itself:
As you can see, the code sucks, but it works and someone can find it useful. The menu appears by pressing F9 button.
You can delete the authorDraw, if you really want to, but please, don't pretend that this is your script.
Hope you enjoy.
Code:
void setCursorSensitivity(float number);
As you are going to see, the cursor is always centered. It doesn't allow certain bug to occur. Also, there's one problem. Script is in polish, but it won't be an issue to translate it. Here is the script itself:
As you can see, the code sucks, but it works and someone can find it useful. The menu appears by pressing F9 button.
You can delete the authorDraw, if you really want to, but please, don't pretend that this is your script.
Hope you enjoy.