The Definitive Escape Key discussion thread

Control

Bronze Baronet of the Realm
3,706
9,925
I never thought about the details of tab target as a player. The way I came up with doing it is to keep an array of target actors so that it doesn't attempt to repeat an already targeted actor but that array needs to expire, you have to get that expiration just right that the player doesn't think about it by the time they want it to start over it does. I did set it up to not target npcs behind walls etc. But even a simple thing of Line of sight can mean different things. If I check from the pawn or the camera. The player often thinks of the camera since its what they see but the camera in a third person setting can see things the pawn can't. It does at times target something out of your view but not out of your pawn's LOS and you may not realize where the npc you ahve targeted is without making a point of looking for it. There is feedback to know but its why I like to watch people play, some more astute than others, but fair bit of people assuming tab is targeting the mob, they the player is looking at rather than one that is closer off to their left or right

In current testing I've disabled first person , some games handle clipping issues by making your mesh invisible while in FP . I find fp makes people want to fiddle with FoV a lot and it has little upside. THe people who have play tested so far when given the choice were using third person.
Good point with the camera versus pawn. Seems like something that would be pretty genre based maybe? I tend to think about things from an mmo or fantasy perspective, so in 3rd person eq/wow, I would expect to be able to target whatever my camera could see (possibly with the exceptions of reasonably out of los things). In something like a tactical shooter, it would probably make more sense to use the pawn's perspective.

Going from 'just target by distance' to 'target what the player is expecting to target' is a whole other hole to dive down lol. Grabbing the most center-screen thing first (or most-center-target-perspective-within-reasonable-distance lol) and then swapping to distance would be easy enough and might cover most of the bases. Trying to do that with the entire list might get messy, though I guess you could define a center, range, and distance as primary, and then anything within primary gets priority based on a combination of distance and degrees from center, and anything outside of primary defaults to distance). Making that logic too deep sounds like it might confuse the player as to what's happening, especially when dealing with frequently moving mobs.

Have you posted elsewhere about what you're making?
 

Blazin

Creative Title
<Nazi Janitors>
7,415
37,320
No but I will soon, I want to have some media together to show you, before I do. Plan to record some videos on the next play test build.
 
  • 1Seriously?
  • 1Like
Reactions: 1 users

Izo

Tranny Chaser
20,041
25,003
out of here lol GIF
 

Borzak

Silver Baron of the Realm
26,619
35,432
Dumb me. I thought the only use for the ESC key was to pull up the settings/options UI or bring up the UI to exit the game.
 

Tmac

Adventurer
<Aristocrat╭ರ_•́>
10,287
17,953
Simply:

1. If there’s a window open on the screen, esc closes the window.

2. If there is no window open on the screen, esc brings up the exit game/settings window.
 

Kharzette

Watcher of Overs
5,603
4,586
One thing you might consider is a slight delay after all windows are closed where esc won't do anything.

Here's a scenario I've seen alot: You are in a survivalish game standing in a camp at night using a constructor/forge/crafting thing. Complicated UI, maybe a second page is your backpack.

Then you hear either fast footsteps or the crunch of a large chunk of your leg being bitten off. In a panic you hit esc about 30 times in a tenth of a second, desperate to regain control so you can blast whatever it is with a shotgun.

For Empyrion, this closes all the ui, then goes into and out of the system menu 28 times while you stand there and die to a dinosaur that snuck up on you. You may also scream at the monitor in frustration around this time.
 
  • 2Worf
  • 1Like
Reactions: 2 users

velk

Trakanon Raider
2,731
1,298
Context sensitive menus are for babies, real men use Esc followed by a 5 digit hex code representing the window id of the thing they are closing.