gm小问题
gamemaker吧
全部回复
仅看楼主
level 5
高压氧 楼主
obj的id是什么
2024年07月28日 08点07分 1
level 14
大概跟这两个相关:
object_index* Index of the object this is an instance of. This variable cannot be changed.
id* The unique identifier for the instance (>= 100000). (Note that when defining rooms the id of the instance under the mouse is always indicated.)
2024年07月30日 01点07分 2
吧务
level 13
object没有id,只有index,在GM代码层面,object的名字和该object的index(数字)等效;
有id的是instance,instance是基于object的“具体的东西”,同object的两个不同instance会拥有相同的基础逻辑(由object设置的各种事件动作决定)但会拥有不同的id。
2024年07月30日 02点07分 3
1