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.

FPSC Classic Product Chat / Player Control : rotation

Author
Message
Shouille
13
Years of Service
User Offline
Joined: 11th Dec 2012
Location:
Posted: 11th Dec 2012 12:31
Hi everybody,

I'm new to FPSC so I'm not sure I'm on the right board to ask this, but here's my problem : for my project I don't want the player to strafe but to turn on himself (without the mouse). I wan't to change the S and P key from strafing to rotating.

I've found this post which tells me it should be possible but with no hint on where to look on the scripts :

http://forum.thegamecreators.com/?m=forum_view&t=192070&b=21#post

Can somebody point me to the right direction please ? Thanks a lot.
Corno_1
15
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 11th Dec 2012 16:59 Edited at: 11th Dec 2012 17:01
HERE IS a small tipp: and for game go to build game and and set the D and A key to unnormal movement keys, then you can go and rotate with a and d


you need a script? I need useful requests at the moment!
http://forum.thegamecreators.com/?m=forum_view&t=200918&b=23
Shouille
13
Years of Service
User Offline
Joined: 11th Dec 2012
Location:
Posted: 11th Dec 2012 23:20
Thanks for the quick answer but I can't manage to make it work. In fact In fact I can't manage to grad any keyboard entry with a script, event something like



I'm afraid I'm missing something here. If I create a simple .fpi file and put it in my scriptbank folder, would it be automaticaly be used on the game or should I indicate somewhere that it should be use ?
Shouille
13
Years of Service
User Offline
Joined: 11th Dec 2012
Location:
Posted: 12th Dec 2012 14:04
I slowly begin to understand a bit more about scripting but I'm still stuck. The trouble is that all the doc or tutorials I've found about scripting start with an existing script. Ok it's easier to understand but it doesn't help me to understand how I include a new one to my game...

Anyway I've tried to modify the setuplevel.fpi file. If I had this :



it works and when I press "A" the game quit. But none of the PLRROTATE... or PLRMOVE... works. I suppose that's because I should be using these instructions on the script related to the player, but which one is it ?
Shouille
13
Years of Service
User Offline
Joined: 11th Dec 2012
Location:
Posted: 13th Dec 2012 14:26
Ok my bad, once I've understood enough about scripting, it's working. I've just change the plrrotatey to addvar=$CAY 1 and it turn smoothly. Thanks.
The Zombie Killer
15
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 14th Dec 2012 01:15
@Shouille
The problem was this:
plrrotatey=1 is equal to SetVar=$CAY 1, it's not an incremental rotation.

That's just a little tip for you :p

-TZK

Login to post a reply

Server time is: 2026-07-03 05:00:17
Your offset time is: 2026-07-03 05:00:17