event_number


Game Maker Language リファレンス > 組み込み関数 用途別 > リソース操作・オブジェクト > event_number

event_number

構文

event_number;

戻り値

real

説明

This read-only variable returns the number of the event currently being called, where the number is actually referring to the "sub event" of the event, ie: for the step event the event number could be any one of the constants ev_step_normal, ev_step_begin, or ev_step_end. For a full list of constants that are available for the specific sub-events see event_perform?, and if you should need to know the main event itself, you should be checking the event_type

switch (event_number)
   {
   case ev_step_normal: show_debug_message("Step event!"); break;
   case ev_game_start: show_debug_message("Game Start""); break;
   case ev_room_start: show_debug_message("Room Start!"); break;
   }

上記のコードは、スクリプト形式と呼ばれ、イベントが現在トリガされる通知するデバッグメッセージを表示するために使用することができる。 原文:The above code could be called form a script and used to show debug messages informing you which event is being currently triggered.

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 1279
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 10