//红色部分就是可以修改的内容 除了instance_place 外还可以使用 collision系列 反正安装需要替换就是了var x1 = argument0; var y1 = argument1; var obj = argument2;var list = ds_list_create(); do { varhit = instance_place(x1, y1, obj);if (
You can also search through every instance created in the All Instances tab. Last, if you click on an instance in your game window, it will show up in the Selected Instance section, but only if the object in question has a collision mask that GameMaker can reference. This is a very ...
In the bulleted list above, you'll have seen that we have a section now forroom order. Previously, you always had a "Rooms" folder in your resource tree and rooms would run in the order they were listed in that folder. Now, however, since you can place assets in any folder and in ...
_hurtbox = instance_create(x,y,oHurtbox); _hurtbox.owner = id; _hurtbox.image_xscale = argument0; _hurtbox.image_yscale = argument1; _hurtbox.xOffset = argument2; _hurtbox.yOffset = argument3; return _hurtbox; This script looks complicated, but it's fairly simple. First, we ...
trigger_position (counterpart of instance_position; returns a trigger at the given position) trigger_position_array (counterpart of instance_position_list, but with arrays; returns an array of all triggers at the given position) trigger_place_empty (counterpart of place_empty; checks whether any ...
_hitbox = instance_create(x,y,oHitbox); _hitbox.owner = id; _hitbox.image_xscale = argument0; _hitbox.image_yscale = argument1; _hitbox.xOffset = argument2; _hitbox.yOffset = argument3; _hitbox.life = argument4; _hitbox.xHit = argument5; ...
//检测hurtbox是否碰到了hitboxwith(oHurtbox){if(place_meeting(x,y,other)&&other.owner!=owner){//ignore检测//检测来自hitbox对象的碰撞with(other){//检查你的目标是否在忽略列表中//如果是,不要再次击中它for(i=0;i<ds_list_size(ignoreList);i++){if(ignoreList[|i]=other.owner){ignore=true;...
instance_destroy(); } 复制代码 当一个对象被破坏时,就像我们上面所做的那样,将调用destroy事件(如果存在)。OK,hitbox设置已经完成了, 但对于实际对象!还有很多事情要做。就像hurtbox一样,接着我们要干嘛?对了,脚本。创建一个新脚本,命名为hitbox_create,然后敲入以下代码(上面的我加了注释,下面的注释我就不加...
_hitbox=instance_create(x,y,oHitbox);_hitbox.owner=id;_hitbox.image_xscale=argument0;_hitbox.image_yscale=argument1;_hitbox.xOffset=argument2;_hitbox.yOffset=argument3;_hitbox.life=argument4;_hitbox.xHit=argument5;_hitbox.yHit=argument6;_hitbox.hitStun=argument7;return_hitbox; ...
instance_place_3d() instance_position_3d() and of course the "Make Elden Ring" function. Reactions: Andrey, Karlstens, 8BitWarrior and 2 others D Deleted User Guest Apr 27, 2022 #244 Amon said: Regarding improved model loading and general 3D, don't forget.. place_meeting_3d() ...