disable cursor movement & person view?

User avatar
AiTechEye
Member
 
Posts: 743
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

disable cursor movement & person view?

by AiTechEye » Sun Jul 21, 2019 07:58

A way to disable the cursor movement and third person view inputs?

it could be something like
player:set_cursor_movement_input(false)
player:set_third_person_view_input(false)

and maybe

player:set_view_mode(1 - 3)
player:set_third_person_view({x=0,y=0,z=0}) can be done by player:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
its would be very helpfull in, eg:
2D
top down
rts
camera mode
...

what do you think?
Last edited by AiTechEye on Wed Jul 31, 2019 19:52, edited 1 time in total.
 

User avatar
Hume2
Member
 
Posts: 319
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: disable cursor movement & person view?

by Hume2 » Sun Jul 21, 2019 10:35

I think, there should be a way to define custom viewpoints. So in your case, you would just remove the viewpoints you don't want.
If you lack the reality, go on a trip or find a job.
 

User avatar
AiTechEye
Member
 
Posts: 743
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: disable cursor movement & person view?

by AiTechEye » Sun Jul 21, 2019 12:59

or just disable those.

as in my case, and probability in others too, is when you need to make acts with animated characters this is a must have
 

User avatar
TalkLounge
Member
 
Posts: 302
Joined: Sun Mar 26, 2017 12:42
Location: Germany
GitHub: TalkLounge
In-game: TalkLounge
 

User avatar
AiTechEye
Member
 
Posts: 743
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye
 

User avatar
runs
Member
 
Posts: 723
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

User avatar
srifqi
Member
 
Posts: 556
Joined: Sat Jun 28, 2014 04:31
Location: Indonesia
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: disable cursor movement & person view?

by srifqi » Wed Jul 31, 2019 09:40

I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: disable cursor movement & person view?

by Wuzzy » Fri Aug 09, 2019 13:30

Good suggestion. For some games, disabling certain camera viewpoints is definitely desirable, esp. 3rd person as it can be kind of abused to see things you should not normally see.

Locking the camera angles is useful if you want to freeze the player for a few seconds.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 5 guests