幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2330|回复: 0

[脚本] 得到一个矩形中特定实例的数目

[复制链接]

335

主题

782

帖子

1万

积分

版主

Rank: 7Rank: 7Rank: 7

积分
12742
发表于 2009-12-9 14:10:58 | 显示全部楼层 |阅读模式
在多种游戏中都能用到~
  1. //Instance_count_area(x1,y1,x2,y2,object you want to be counted)
  2. var Inst;
  3. Inst = 0;
  4. with ( argument4 )
  5. {
  6. if collision_rectangle( argument0,argument1,argument2,argument3,argument4,1,0 ){ Inst += 1; }
  7. }
  8. return ( Inst );
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2024-4-20 21:14 , Processed in 0.019297 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表