Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Little Town - Session 03 - 09 Closing Our Textbox

3.9K views
•
April 27, 2021
by
GameMaker
YouTube video player
Little Town - Session 03 - 09 Closing Our Textbox

TL;DR

This tutorial explains how to create and close text boxes in Game Maker Studio 2 using key presses and alarm events.

Transcript

it's time to solve our second issue we want to be able to close the text box by pressing the spacebar again and we want to be able to keep moving once that text box is closed so this is actually quite simple we're going to do this from the text box itself let's open up your text box object obj underscore xbox and let's add a new event we're going t... Read More

Key Insights

  • 📫 Text boxes in Game Maker Studio 2 can be closed by adding a key press event and using alarms to execute code for destruction.
  • 😫 By setting alarms and using instance destroy, the text box object is removed after executing additional code in the event.
  • 📫 The tutorial teaches how to ensure the text box closes, allowing the player to continue moving in the game.
  • 🍱 Customization options for text boxes include modifying the appearance, such as the sprite, background color, and font.
  • 🤩 This method can be applied to multiple text boxes in a game by replicating the key press and alarm events for each object.
  • 😒 The use of alarms simplifies the process and avoids potential issues with conflicting code execution.
  • 🎮 Closing the text box does not affect other functionalities or player control in the game.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How do you close a text box in Game Maker Studio 2?

To close a text box, you can add a key press space event to the text box object. Upon pressing space, set an alarm and include a code block that resets a global variable and uses the instance destroy function to destroy the text box object.

Q: Why is an alarm used instead of directly adding the code to the key press event?

An alarm is used in this tutorial to ensure that the text box is destroyed after executing other code in the event. Without the alarm, there were issues with the text box being destroyed but other actions not being performed simultaneously.

Q: Can the same method be used for multiple text boxes in a game?

Yes, you can use the same method for multiple text boxes by replicating the key press space event and alarm events for each text box object in your game.

Q: How can I customize the appearance of the text box?

You can customize the appearance of the text box by modifying its object sprite, background color, font, and other properties within the Game Maker Studio 2 interface.

Key Insights:

  • Text boxes in Game Maker Studio 2 can be closed by adding a key press event and using alarms to execute code for destruction.
  • By setting alarms and using instance destroy, the text box object is removed after executing additional code in the event.
  • The tutorial teaches how to ensure the text box closes, allowing the player to continue moving in the game.
  • Customization options for text boxes include modifying the appearance, such as the sprite, background color, and font.
  • This method can be applied to multiple text boxes in a game by replicating the key press and alarm events for each object.
  • The use of alarms simplifies the process and avoids potential issues with conflicting code execution.
  • Closing the text box does not affect other functionalities or player control in the game.
  • This tutorial provides a basic and functional implementation of text boxes in Game Maker Studio 2.

Summary & Key Takeaways

  • The tutorial teaches how to close text boxes in Game Maker Studio 2 by pressing the spacebar and keep moving after closure.

  • To accomplish this, a key press space event is added to the text box object. Upon pressing space, an alarm is set and a code block is executed.

  • An alarm event is created and referenced by alarm 0. The code block resets a global variable and uses the instance destroy function to destroy the text box object.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from GameMaker 📚

Little Town - Session 03 - 16 Using Function thumbnail
Little Town - Session 03 - 16 Using Function
GameMaker
Little Town - Session 02 - 23 Adding an Audio Emitter thumbnail
Little Town - Session 02 - 23 Adding an Audio Emitter
GameMaker
Little Town - Session 01 - 22 Object Parenting thumbnail
Little Town - Session 01 - 22 Object Parenting
GameMaker
Little Town - Session 03 - 10 Adding Effects thumbnail
Little Town - Session 03 - 10 Adding Effects
GameMaker
Little Town - Session 02 - 20 Using Variables thumbnail
Little Town - Session 02 - 20 Using Variables
GameMaker

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.