Category: GML/Constants (定数)
定数を独自に定義したい場合はマクロを利用
ショートカット:Shift+Ctrl+n

GM:S 固有情報

GM_build_date
GM_version

キーワード、変数スコープ、汎用

※ 定数なので、型として調べた場合には全て「実数型」
self ※(-1)
other ※(-2)
all ※(-3)
noone ※(-4)

global 
※ 変数のスコープをグローバルとして定義するキーワード、ドット記法と共に用いる

globalvar 
※ 変数のスコープをグローバルとして定義。ドット記法を使わないで変数定義する場合に利用する

local 
※ オートコンプリートに登録されているが現在は利用しない、var に相当するはず

var
※ 変数のスコープをローカルとして定義。ドット記法を使わない

※ Boolean も GMS には型が存在しないため定数かつ型は実数型
true
false

pi

Achievement

achievement_achievement_info   *(iOS Only)
achievement_challenge_completed
achievement_challenge_completed_by_remote
achievement_challenge_launched
achievement_challenge_list_received
achievement_challenge_received
achievement_filter_all_players
achievement_filter_favorites_only
achievement_filter_friends_only
achievement_friends_info
achievement_leaderboard_info
achievement_msg_result
achievement_our_info
achievement_pic_loaded
achievement_player_info
achievement_purchase_info
achievement_show_achievement
achievement_show_bank
achievement_show_friend_picker
achievement_show_leaderboard
achievement_show_profile
achievement_show_purchase_prompt
achievement_show_ui
achievement_type_achievement_challenge
achievement_type_score_challenge

Asset asset_get_type(name); で得られる固定値一覧

asset_background
asset_font
asset_object
asset_path
asset_room
asset_script
asset_sound
asset_sprite
asset_timeline
asset_unknown

Audio

audio_mono    Audio buffer Channels Constants/audio_create_buffer_sound();
audio_stereo
audio_3d      3D (5.1) audio

audio_falloff_exponent_distance
audio_falloff_exponent_distance_clamped
audio_falloff_inverse_distance
audio_falloff_inverse_distance_clamped
audio_falloff_linear_distance
audio_falloff_linear_distance_clamped
audio_falloff_none

audio_new_system
audio_old_system

Blend Mode

bm_normal           4 basic blend mode constants/draw_set_blend_mode();
bm_add
bm_subtract
bm_max

bm_zero             extended blend mode constants/draw_set_blend_mode_ext();
bm_one
bm_src_color
bm_src_colour       *Not all blend modes are available on all platforms.
bm_inv_src_color
bm_inv_src_colour   *Not all blend modes are available on all platforms.
bm_src_alpha
bm_inv_src_alpha
bm_dest_alpha
bm_inv_dest_alpha
bm_dest_color
bm_dest_colour      *Not all blend modes are available on all platforms.
bm_inv_dest_color   
bm_inv_dest_colour  *Not all blend modes are available on all platforms.
bm_src_alpha_sat    *Not all blend modes are available on all platforms.

os_browser

browser_not_a_browser      *Game is not being played in a browser
browser_unknown
browser_ie
browser_firefox
browser_chrome
browser_safari
browser_opera
browser_ie_mobile
browser_safari_mobile
browser_tizen
browser_windows_store      *Windows 8 App

バッファ関連

~ 4 Buffer Types ~ buffer_fixed a fixed size in bytes. buffer_grow will grow dynamically as data is added. buffer_wrap the data will wrap. buffer_fast a special "stripped down" buffer
~ 12 Data Types ~ buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_f16 buffer_f32 buffer_f64 buffer_u64 buffer_bool buffer_string
buffer_generalerror buffer_invalidtype buffer_network buffer_outofbounds buffer_outofspace buffer_seek_start buffer_seek_end buffer_seek_relative buffer_text buffer_vbuffer

マウスカーソル( Windows 標準)

*windows_set_cursor(curs)window_get_cursor(curs)
cr_none *to hide the mouse cursor, use cr_none as value. cr_default cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_nodrop cr_hsplit cr_vsplit cr_multidrag cr_sqlwait cr_no cr_appstart cr_help cr_handpoint cr_size_all
device_emulator
device_ios_ipad
device_ios_ipad_retina
device_ios_iphone
device_ios_iphone5
device_ios_iphone6
device_ios_iphone6plus
device_ios_iphone_retina
device_ios_unknown
device_tablet
display_landscape
display_landscape_flipped
display_portrait
display_portrait_flipped
dll_cdecl
dll_stdcall

data structure type

*ds_exists(index, type);
ds_type_map ds_type_list ds_type_stack ds_type_grid ds_type_queue ds_type_priority

effect type (組み込みの simple effects を指定する定数)

*定数から簡単にエフェクトを作れるが、組み込みなので自由度は少ない
ef_cloud
ef_ellipse
ef_explosion
ef_firework
ef_flare
ef_rain
ef_ring
ef_smoke
ef_smokeup
ef_snow
ef_spark
ef_star

In-Built Shapes (for create particles)

組み込みのパーティクル用シェイプ  (形状)
part_type_shape(ind, shape); で用いる。

pt_shape_circle
pt_shape_cloud
pt_shape_disk
pt_shape_explosion
pt_shape_flare
pt_shape_line
pt_shape_pixel
pt_shape_ring
pt_shape_smoke
pt_shape_snow
pt_shape_spark
pt_shape_sphere
pt_shape_square
pt_shape_star

Event Types

* event_perform(type, numb);//Performs a given event of the calling instance.

ev_create
ev_destroy
ev_step
    ev_step_normal
    ev_step_begin
    ev_step_end

ev_alarm    *The number relevant to which of the 12 alarms you wish to trigger the event of

ev_keyboard
ev_keypress
ev_keyrelease
ev_mouse
    ev_left_button
    ev_right_button
    ev_middle_button
    ev_no_button
    ev_left_press
    ev_right_press
    ev_middle_press
    ev_left_release
    ev_right_release
    ev_middle_release
    ev_mouse_enter
    ev_mouse_leave
    ev_mouse_wheel_down
    ev_mouse_wheel_up
    ev_global_left_button
    ev_global_right_button
    ev_global_middle_button
    ev_global_left_press
    ev_global_right_press
    ev_global_middle_press
    ev_global_left_release
    ev_global_right_release
    ev_global_middle_release
    * ev_global_press
    * ev_global_release
    ev_joystick1_left
    ev_joystick1_right
    ev_joystick1_up
    ev_joystick1_down
    ev_joystick1_button1
    ev_joystick1_button2
    ev_joystick1_button3
    ev_joystick1_button4
    ev_joystick1_button5
    ev_joystick1_button6
    ev_joystick1_button7
    ev_joystick1_button8
    ev_joystick2_left
    ev_joystick2_right
    ev_joystick2_up
    ev_joystick2_down
    ev_joystick2_button1
    ev_joystick2_button2
    ev_joystick2_button3
    ev_joystick2_button4
    ev_joystick2_button5
    ev_joystick2_button6
    ev_joystick2_button7
    ev_joystick2_button8

ev_collision    *Collision with an object

ev_other
    ev_outside
    ev_boundary
    ev_game_start
    ev_game_end
    ev_room_start
    ev_room_end
    ev_no_more_lives
    ev_no_more_health
    ev_animation_end
    ev_end_of_path
    ev_close_button
    ev_user0
    ev_user1
    ev_user2
    ev_user3
    ev_user4
    ev_user5
    ev_user6
    ev_user7
    ev_user8
    ev_user9
    ev_user10
    ev_user11
    ev_user12
    ev_user13
    ev_user14
    ev_user15

ev_draw    * NOTE: This event cannot be forced and the constants are only for identifying the event when performed!
    ev_draw_begin
    ev_draw_end
    ev_draw_pre
    ev_draw_post
    ev_gui
    ev_gui_begin
    ev_gui_end


ev_trigger    * Triggers are now obsolete! (廃止)
fa_archive
fa_bottom
fa_center
fa_directory
fa_hidden
fa_left
fa_middle
fa_readonly
fa_right
fa_sysfile
fa_top
fa_volumeid

FaceBook ログイン

facebook_login(permissions, ios_login_type);で用いる定数

fb_login_default
*Use the default iOS login behaviour (see here for further details).

fb_login_fallback_to_webview
*Attempt Facebook login, asking user for credentials if necessary.

fb_login_no_fallback_to_webview
*Attempt Facebook login, but no direct request for credentials will be made.

fb_login_forcing_webview
*Only attempt WebView login, asking user for credentials

fb_login_use_system_account
*Attempt Facebook login, preferring the system account and falling back to a fast app switch if necessary.

fb_login_forcing_safari
*Attempt only to login with Safari.
gp_axislh
gp_axislv
gp_axisrh
gp_axisrv
gp_face1
gp_face2
gp_face3
gp_face4
gp_padd
gp_padl
gp_padr
gp_padu
gp_select
gp_shoulderl
gp_shoulderlb
gp_shoulderr
gp_shoulderrb
gp_start
gp_stickl
gp_stickr
iap_available
iap_canceled
iap_ev_consume
iap_ev_product
iap_ev_purchase
iap_ev_restore
iap_ev_storeload
iap_failed
iap_purchased
iap_refunded
iap_status_available
iap_status_loading
iap_status_processing
iap_status_restoring
iap_status_unavailable
iap_status_uninitialised
iap_storeload_failed
iap_storeload_ok
iap_unavailable
lb_disp_none
lb_disp_numeric
lb_disp_time_ms
lb_disp_time_sec
lb_sort_ascending
lb_sort_descending
lb_sort_none
leaderboard_type_number
leaderboard_type_time_mins_secs
matrix_projection
matrix_view
matrix_world

マウスボタン関連

mb_any
mb_left
mb_middle
mb_none
mb_right

ネットワーク系定数

network_config_connect_timeout
network_config_use_non_blocking_socket
network_socket_bluetooth
network_socket_tcp
network_socket_udp
network_type_connect
network_type_data
network_type_disconnect
network_type_non_blocking_connect
of_challenge_lose
of_challenge_tie
of_challenge_win

OS 判定定数一覧

os_3ds
os_android
os_bb10
os_ios
os_linux
os_macosx
os_ps3
os_ps4
os_psp
os_psvita
os_symbian
os_tizen
os_unknown
os_wiiu
os_win32
os_win8native
os_windows
os_winphone
os_xbox360
os_xboxone
ov_achievements
ov_community
ov_friends
ov_gamegroup
ov_players
ov_settings
path_action_continue
path_action_restart
path_action_reverse
path_action_stop
phy_debug_render_aabb
phy_debug_render_collision_pairs
phy_debug_render_coms
phy_debug_render_core_shapes
phy_debug_render_joints
phy_debug_render_obb
phy_debug_render_shapes

phy_joint_anchor_1_x
phy_joint_anchor_1_y
phy_joint_anchor_2_x
phy_joint_anchor_2_y
phy_joint_angle
phy_joint_angle_limits
phy_joint_damping_ratio
phy_joint_frequency
phy_joint_length_1
phy_joint_length_2
phy_joint_lower_angle_limit
phy_joint_max_force
phy_joint_max_length
phy_joint_max_motor_force
phy_joint_max_motor_torque
phy_joint_max_torque
phy_joint_motor_force
phy_joint_motor_speed
phy_joint_motor_torque
phy_joint_reaction_force_x
phy_joint_reaction_force_y
phy_joint_reaction_torque
phy_joint_speed
phy_joint_translation
phy_joint_upper_angle_limit

phy_particle_data_flag_category
phy_particle_data_flag_colour
phy_particle_data_flag_position
phy_particle_data_flag_typeflags
phy_particle_data_flag_velocity
phy_particle_flag_colourmixing
phy_particle_flag_elastic
phy_particle_flag_powder
phy_particle_flag_spring
phy_particle_flag_tensile
phy_particle_flag_viscous
phy_particle_flag_wall
phy_particle_flag_water
phy_particle_flag_zombie
phy_particle_group_flag_rigid
phy_particle_group_flag_solid
pr_linelist
pr_linestrip
pr_pointlist
pr_trianglefan
pr_trianglelist
pr_trianglestrip
ps_change_all
ps_change_motion
ps_change_shape
ps_deflect_horizontal
ps_deflect_vertical
ps_distr_gaussian
ps_distr_invgaussian
ps_distr_linear
ps_force_constant
ps_force_linear
ps_force_quadratic
ps_shape_diamond
ps_shape_ellipse
ps_shape_line
ps_shape_rectangle
timezone_local
timezone_utc
ty_real
ty_string
ugc_filetype_community
ugc_filetype_microtrans
ugc_list_Favorited
ugc_list_Followed
ugc_list_Published
ugc_list_Subscribed
ugc_list_UsedOrPlayed
ugc_list_VotedDown
ugc_list_VotedOn
ugc_list_VotedUp
ugc_list_WillVoteLater
ugc_match_AllGuides
ugc_match_Artwork
ugc_match_Collections
ugc_match_ControllerBindings
ugc_match_IntegratedGuides
ugc_match_Items
ugc_match_Items_Mtx
ugc_match_Items_ReadyToUse
ugc_match_Screenshots
ugc_match_UsableInGame
ugc_match_Videos
ugc_match_WebGuides
ugc_query_AcceptedForGameRankedByAcceptanceDate
ugc_query_CreatedByFollowedUsersRankedByPublicationDate
ugc_query_CreatedByFriendsRankedByPublicationDate
ugc_query_FavoritedByFriendsRankedByPublicationDate
ugc_query_NotYetRated
ugc_query_RankedByNumTimesReported
ugc_query_RankedByPublicationDate
ugc_query_RankedByTextSearch
ugc_query_RankedByTotalVotesAsc
ugc_query_RankedByTrend
ugc_query_RankedByVote
ugc_query_RankedByVotesUp
ugc_result_success
ugc_sortorder_CreationOrderAsc
ugc_sortorder_CreationOrderDesc
ugc_sortorder_ForModeration
ugc_sortorder_LastUpdatedDesc
ugc_sortorder_SubscriptionDateDesc
ugc_sortorder_TitleAsc
ugc_sortorder_VoteScoreDesc
ugc_visiblity_friends_only
ugc_visiblity_private
ugc_visiblity_public
vertex_type_colour
vertex_type_float1
vertex_type_float2
vertex_type_float3
vertex_type_float4
vertex_type_ubyte4
vertex_usage_binormal
vertex_usage_blendindices
vertex_usage_blendweight
vertex_usage_colour
vertex_usage_depth
vertex_usage_fog
vertex_usage_normal
vertex_usage_position
vertex_usage_psize
vertex_usage_sample
vertex_usage_tangent
vertex_usage_textcoord
vk_add
vk_alt
vk_anykey
vk_backspace
vk_control
vk_decimal
vk_delete
vk_divide
vk_down
vk_end
vk_enter
vk_escape
vk_f1
vk_f2
vk_f3
vk_f4
vk_f5
vk_f6
vk_f7
vk_f8
vk_f9
vk_f10
vk_f11
vk_f12
vk_home
vk_insert
vk_lalt
vk_lcontrol
vk_left
vk_lshift
vk_multiply
vk_nokey
vk_numpad0
vk_numpad1
vk_numpad2
vk_numpad3
vk_numpad4
vk_numpad5
vk_numpad6
vk_numpad7
vk_numpad8
vk_numpad9
vk_pagedown
vk_pageup
vk_pause
vk_printscreen
vk_ralt
vk_rcontrol
vk_return
vk_right
vk_rshift
vk_shift
vk_space
vk_subtract
vk_tab
vk_up

Base Colour Constants

*色指定に Hex を用いる場合はプレフィクスとして"$"を付ける。 例/var col = $983c95; サンプル色/
c_aqua *色見本一覧 c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_orange c_purple c_red c_silver c_teal c_white c_yellow
ANSI_CHARSET
ARABIC_CHARSET
BALTIC_CHARSET
CHINESEBIG5_CHARSET
DEFAULT_CHARSET
EASTEUROPE_CHARSET
GB2312_CHARSET
GREEK_CHARSET
HANGEUL_CHARSET
HEBREW_CHARSET
JOHAB_CHARSET
MAC_CHARSET
OEM_CHARSET
RUSSIAN_CHARSET
SHIFTJIS_CHARSET
SYMBOL_CHARSET
THAI_CHARSET
TURKISH_CHARSET
VIETNAMESE_CHARSET

削除された定数

廃止された関数および定数について、多くは互換性の面からクロスプラットフォーム向けでない Windows API に依存したものなどです。 The following constants have also been removed: * Obsolete Sound Functions se_none se_chorus se_echo se_flanger se_gargle se_reverb se_compressor se_equalizer * Obsolete Message Functions text_type button_type input_type
WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.