标题: 嘴部动作错误
1084solid
会员
Rank: 1



UID 437
精华 0
积分 17
帖子 7
阅读权限 5
注册 2007-9-18
 
发表于 2007-10-5 15:18  资料  短消息  加为好友  添加 1084solid 为MSN好友 通过MSN和 1084solid 交谈
嘴部动作错误

想加入随机的嘴型变化,可是总是出错......拜托大大们帮忙看下~
【头痛中】下面是我写的asd文件的代码

QUOTE:

*go
@loadcell
@loop
;
@macro name=copyone
@copy dx=0 dy=0 sx=%x sy=0 sw=96 sh=103
@endmacro
*start1

*r1
@copyone x=0
@wait time=500
*r2
@copyone x=96
@wait time=500

[eval exp="tf.t1 = &random" ]
@if exp="tf.t1 <= 0.5"
@emb exp="tf.t1" [l][r]
@endif
*r3
@copyone x=192
@wait time=500
@jump target=*r2
@jump target=*start1

下面是出错报告

QUOTE:
15:18:06 ==== An exception occured at anonymous@0x01A7EA80(1)[(top level script) global], VM ip = 8 ====
15:18:06 -- Disassembled VM code --
15:18:06 #(1) tf.t1 = &random
15:18:06 00000000 gpds %1, %-2.*0        // *0 = (string)"random"
15:18:06 00000004 gpd %2, %-2.*1        // *1 = (string)"tf"
15:18:06 00000008 spde %2.*2, %1        // *2 = (string)"t1"
15:18:06 -- Register dump --
15:18:06 %-2=(object)(object 0x0012E778:0x00000000)  %-1=(object)(object 0x010C72A4:0x010C72A4)
15:18:06 %0=(void)  %1=(object)(object 0x01123B28:0x010C72A4)  %2=(object)(object 0x01B9AA78:0x01B9AA78)
15:18:06 -----------------------------------------------------------------------------------------------
15:18:06 对读取/写入专用的变量执行了不支持的操作 at anonymous@0x01A7EA80(1)[(top level script) global]
15:18:06 trace : animationlayer.tjs(1136)[(function) eval] <-- animationlayer.tjs(295)[(function) onTag] <-- conductor.tjs(104)[(function) timerCallback]
15:18:06 发生了错误
文件 : file://./d/cn/program/edit/kagexpress/work/data/fgimage/kz14amm.asd   行 : 21
标记 : eval ( ← 可能显示了错误前后的标记 )
对读取/写入专用的变量执行了不支持的操作
15:18:06 script exception : 发生了错误
文件 : file://./d/cn/program/edit/kagexpress/work/data/fgimage/kz14amm.asd   行 : 21
标记 : eval ( ← 可能显示了错误前后的标记 )
对读取/写入专用的变量执行了不支持的操作 at conductor.tjs(197)[(function) timerCallback]


顶部
karryngai
会员
Rank: 1
大叔



UID 58
精华 0
积分 203
帖子 119
阅读权限 5
注册 2007-2-10
 
发表于 2007-10-5 15:31  资料  短消息  加为好友 
15:18:06 #(1) tf.t1 = &random
15:18:06 00000000 gpds %1, %-2.*0        // *0 = (string)"random"
15:18:06 00000004 gpd %2, %-2.*1        // *1 = (string)"tf"
15:18:06 00000008 spde %2.*2, %1        // *2 = (string)"t1"

= = 調用隨機數不是這樣的......使用Math.random()吧......





我的女朋友今年十五歲——就這樣在一起就好了~~~ 就這樣在一起~~~ 忘卻一切世俗的眼光~~~
顶部
1084solid
会员
Rank: 1



UID 437
精华 0
积分 17
帖子 7
阅读权限 5
注册 2007-9-18
 
发表于 2007-10-7 10:24  资料  短消息  加为好友  添加 1084solid 为MSN好友 通过MSN和 1084solid 交谈
哦~
谢谢LS
继续试验~

顶部
1084solid
会员
Rank: 1



UID 437
精华 0
积分 17
帖子 7
阅读权限 5
注册 2007-9-18
 
发表于 2007-10-9 11:32  资料  短消息  加为好友  添加 1084solid 为MSN好友 通过MSN和 1084solid 交谈
Math.random()
没有找到相关的介绍....
tjsdoc中间没得
请问哪个文件有相关的介绍呢?

顶部
Miliardo
幕后黑手
Rank: 4


UID 1
精华 0
积分 379
帖子 339
阅读权限 255
注册 2006-12-3
 
发表于 2007-10-9 12:34  资料  短消息  加为好友 
Pia飞……
Math类就在TJS文档中





そんな世界を 僕らはゆく
誰かのために また目覚める
誰がいても 誰もいなくても そう思うよ
顶部
1084solid
会员
Rank: 1



UID 437
精华 0
积分 17
帖子 7
阅读权限 5
注册 2007-9-18
 
发表于 2007-10-10 11:01  资料  短消息  加为好友  添加 1084solid 为MSN好友 通过MSN和 1084solid 交谈
终于制作成功~
谢谢大大~~

顶部
 



清除 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.022327 second(s), 7 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示