質問編集履歴

3

見た目の改善

2018/12/20 06:59

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -19,6 +19,10 @@
19
19
 
20
20
 
21
21
  ##ソースコード
22
+
23
+ ```ActionScript3
24
+
25
+
22
26
 
23
27
  Frame:1
24
28
 
@@ -90,6 +94,10 @@
90
94
 
91
95
  gotoAndPlay( currentFrame - 1 );
92
96
 
97
+ ```
98
+
99
+
100
+
93
101
 
94
102
 
95
103
 

2

見た目の改善

2018/12/20 06:59

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  var num = 0; //杖(player)の持つ番号
26
26
 
27
- var one = false;
27
+ var one = false; //一回のみ処理のためのフラグ
28
28
 
29
29
 
30
30
 
@@ -32,17 +32,17 @@
32
32
 
33
33
  Frame:2
34
34
 
35
- for( var i = 0; i < MovieClip( root ).points.length; i++)
35
+ for( var i = 0; i < MovieClip( root ).points.length; i++) //points[5]の分の処理
36
36
 
37
37
  {
38
38
 
39
39
    var thePoint = MovieClip(root).points[i];
40
40
 
41
-   if( thePoint != null)
41
+   if( thePoint != null) //thePointの中身があれば
42
42
 
43
43
    {
44
44
 
45
-     if( this.hitTestObject( thePoint ) )
45
+     if( this.hitTestObject( thePoint ) ) //当たり判定
46
46
 
47
47
      {
48
48
 
@@ -50,7 +50,7 @@
50
50
 
51
51
        {
52
52
 
53
- if(i == num)
53
+ if(i == num) //物体の配列の添え字とプレイヤーの持つ番号が等しければ
54
54
 
55
55
  {
56
56
 

1

見た目の改善

2018/12/20 06:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -36,19 +36,19 @@
36
36
 
37
37
  {
38
38
 
39
- var thePoint = MovieClip(root).points[i];
39
+   var thePoint = MovieClip(root).points[i];
40
40
 
41
- if( thePoint != null)
41
+   if( thePoint != null)
42
42
 
43
- {
43
+   {
44
44
 
45
- if( this.hitTestObject( thePoint ) )
45
+     if( this.hitTestObject( thePoint ) )
46
46
 
47
- {
47
+     {
48
48
 
49
- if(one == false)
49
+       if(one == false)
50
50
 
51
- {
51
+       {
52
52
 
53
53
  if(i == num)
54
54