标题: 請問如何取得目前的座標(已解決)
chris2002
会员
Rank: 1



UID 12
精华 0
积分 491
帖子 277
阅读权限 5
注册 2006-12-17
 
发表于 2008-3-11 12:44  资料  短消息  加为好友 
請問如何取得目前的座標(已解決)

請問如何取得目前的座標呢?

kag中只有mouse down時, 但沒有平時的座標位置取得方法.

請高手指點~


寫了一個,不過好像不是很正確...


function nowx(num)
{
  var x=window.primaryLayer.cursorX;
  return x;
}
function nowy(num)
{
  var y=window.primaryLayer.cursorY;
  return y;



好像在之前的帖子中找到了

kag.fore.base.cursorX

不好意思,已解決了...

[ 本帖最后由 chris2002 于 2008-3-11 13:06 编辑 ]

顶部
 



清除 Cookies - 联系我们 - [Key Fans Club] the Council of Doujin-game Development and Promotion - Archiver - WAP
Powered by Discuz! 5.5.0 © 2001-2006 Comsenz Inc.
Processed in 0.011009 second(s), 7 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示