[過去ログ] 【軽量】godot engine - part2 (1002レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
809: 名前は開発中のものです。 [sage] 2024/01/28(日) 06:15:45.02 ID:TmRS1aaH(1/2) AAS
_process()は止まるけど_input()側で入力受付出来なかったっけ

func _input(event):
 if event.is_action_pressed(入力キー):
  get_tree().paused = !get_tree().paused
811
(1): 名前は開発中のものです。 [sage] 2024/01/28(日) 06:56:49.98 ID:TmRS1aaH(2/2) AAS
>>810
810(1): 名前は開発中のものです。 [] 2024/01/28(日) 06:22:43.03 ID:pEcrIiHG(2/7) AAS
ありがとうございます
ポーズ画面作る場合はpausedを使うのでいいんですかね?

extends Node2D

# Called when the node enters the scene tree for the first time.
func _ready():
get_tree().paused = true

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _input(event):
if Input.is_key_pressed(KEY_A):
get_tree().paused = !get_tree().paused
print("release")

今試したんですが、インプットでも受け付けないみたいです
すまねえこういう事だった
ノードのProcessModeがWhenPausedかAlwaysじゃなきゃ_processも_inputも止まると
外部リンク[html]:docs.godotengine.org

ちゃんと一時停止の例まで載ってた
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.041s