Krpano_如何獲取當前場景的ID和名字

 

原文地址:http://victu360.com/archives/10495

2

3

4

5

6

7

8

9

10

11

12

13

14

15

1、獲取當前場景的索引ID:

 

get(scene[get(xml.scene)].index);

 

判斷例子:

 

if(scene[get(xml.scene)].index EQ 0,playsound(bggsnd, '%SWFPATH%/sound/music1.mp3', 10););

 

2、獲取當前場景名字:

 

get(scene[get(xml.scene)].name);

 

判斷例子:

 

if(scene[get(xml.scene)].name EQ scene01,playsound(bggsnd, '%SWFPATH%/sound/music1.mp3', 10););

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章