Python Forum
how to make a hotkey for text adventure game
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make a hotkey for text adventure game
#2
Is it safe to assume you are using python's native "input()" function? If you post your code it will be easier to find a solution. The basic idea would be to write some kind of mapping function that runs if input is ever a certain character. You won't have to code for every outcome, you code how the computer decides the result of the function.
Reply


Messages In This Thread
RE: how to make a hotkey for text adventure game - by michael1789 - Jan-06-2021, 06:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I make a game save? BliepMonster 6 1,607 Oct-09-2022, 08:59 AM
Last Post: Gribouillis
  make all text in Right to left alignment in tkinter widgets jalal0034 1 1,412 Sep-27-2022, 06:42 PM
Last Post: Larz60+
  loop adventure game ilikedofs 1 1,755 May-26-2021, 12:43 AM
Last Post: bowlofred
  A text-based game [SOLVED] Gameri1 6 3,993 Apr-20-2021, 02:26 PM
Last Post: buran
  Winning/Losing Message Error in Text based Game kdr87 2 3,053 Dec-14-2020, 12:25 AM
Last Post: bowlofred
  Choose your own adventure game noahc2004 2 2,635 Jun-26-2020, 02:06 PM
Last Post: DPaul
  Hotkey to restart code? DannyB 1 2,812 May-20-2020, 02:52 AM
Last Post: michael1789
  PySide2 Hotkey works only once in Maya LalaGhost 0 1,812 May-19-2020, 05:05 PM
Last Post: LalaGhost
  so im trying to make a question game for school and im trying to make it when some on dertder25t 1 1,565 Jan-27-2020, 10:44 PM
Last Post: woooee
  Terminate a process when hotkey is pressed 66Gramms 0 2,283 Dec-24-2019, 06:41 PM
Last Post: 66Gramms

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020