Scripts / [SOLVED] Look at to your back.

Author
Message
Ceri
5
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 29th Sep 2019 07:49
I am working on a hide or run type horror game and i want to player can look at his back when he fleeing. Like pressing c to crouch. When i press the "look back button" player must look at his back and when i stop to pressing the button player must return. Thank you all in advance.

The author of this post has marked a post as an answer.

Go to answer
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 29th Sep 2019 09:08
I Dont think thats possible 2 do that, why do u want a key 4 that instead of using the mouse?
The only thing that occurs 2 me would be to edit the zoom function so the camera is turning back, but iam not expert.
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th Sep 2019 16:58
you'll need to be more specific... do you want the player to still be able to move while looking behind? is it third or first person? would you want the "look back" going to take up the entire screen or just part of it?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Ceri
5
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 3rd Oct 2019 13:40
@smallg
I need first person, entire screen and player should move at the same time. As in this video at the 0:27.https://www.youtube.com/watch?v=2O6lZpQJ9HU
I would very pleased if you do it. thanks a lot in advance.
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 3rd Oct 2019 14:09 Edited at: 6th Oct 2019 14:10
Ok i think i know what u mean, u want that if u press the key he looks back but still running forward while pressing the arrow up key?
Yes that makeble lookat this
https://forum.game-guru.com/thread/220491#msg2611888
PM
Ceri
5
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 6th Oct 2019 10:26 Edited at: 6th Oct 2019 10:26
osiem80 yes. The player should be able to look behind when going forward. He should be able to check if he chasing by the killer. (With first person camera.) This script didn't help, nevertheless thanks.
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 6th Oct 2019 11:06 Edited at: 6th Oct 2019 14:10
https://forum.game-guru.com/thread/216158
https://forum.game-guru.com/thread/218159
Look at these two
Otherwise u can contact amenmoses directly, hes the best scripter here(sorry smallg )
Or post your problem on our discord community.
https://discord.gg/xnTAbBR
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Oct 2019 15:14
Quote: "Otherwise u can contact amenmoses directly, hes the best scripter here(sorry smallg )"

Lol, quite agree... If I was as good as a professional coder I'd say one of us is in the wrong job :p
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 6th Oct 2019 19:11
I still prefer smallg explaining things though, amens a genius but he has a hard time realising we aren't genius too and gives me a headache sometimes

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Ceri
5
Years of Service
User Offline
Joined: 18th Sep 2019
Location: Turkey/Ankara
Posted: 11th Oct 2019 21:26
i just thought if it possible i can use it. it's not necessary. thank you all.
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 12th Oct 2019 22:46
Ceri, that would probably be under CameraAngle
Probably would be quite easy to just place a script that gets
PlayerAngle+ 180 while any particular key is being held down.
And then put that value into CameraAngle.

This CameraAngle vs PlayerAngle really put a wrench into my attempts to make
a swimming script. I didn't know there was a PlayerAngle separate from
CameraAngle because I asked the wrong questions back then!!!!! LOL

I might find a minute to test if my theory holds any beans!
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 12th Oct 2019 23:34
Red-necked together, as usual.

You can't hold walk or run forward at the same time as manipulating
the cameras! So we put something else in...
Hold 'R' to look at reverse and you will run looking backard... LOL

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Oct 2019 19:02
This post has been marked by the post author as the answer.
Or functionally identical but neater:
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 14th Oct 2019 04:16
Thank you both.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




Login to post a reply

Server time is: 2024-12-22 09:03:00
Your offset time is: 2024-12-22 09:03:00