ActionScript 誰かが物凄い勢いで解答するスレ33
1 :Now_loading...774KB :2014/02/01(土) 23:50:08.56 ID:nCh3mKs4.net AcitonScriptのことなら 初歩的な質問でもなんでもおk 見れない、保存したい、flashを作りたいはスレ違い 下記の関連スレ、超基本的な質問へ。 ●質問する時は自分の環境を書く(AS2,AS3の別も) ●質問はものすごい勢いじゃなくて結構 ●できるだけコードも示す ●まず自分がやりたいことを明確に書く。そのために試してみた処理を書く 前スレ ActionScript 誰かが物凄い勢いで解答するスレ32 http://toro.2ch.net/test/read.cgi/swf/1385339160/ 関連スレ Flashの超基本的な質問はここでしろ! part44 http://toro.2ch.net/test/read.cgi/swf/1363773522/ ※初心者は↑こちら推奨
151 :Now_loading...774KB :2014/06/12(木) 21:14:13.90 ID:hcQPM/Rx.net FlashDevelopが無難かと
152 :Now_loading...774KB :2014/06/13(金) 10:27:34.69 ID:28u1o7+b.net 質問です //www40.atwiki.jp/spellbound/pages/484.htmlのフラッシュを作りたいけど ReferenceError: Error #1056: Main のプロパティ player を作成できません。 at flash.display::Sprite/constructChildren() at flash.display::Sprite() at Main() と出ます。 playerインスタンスをpublic指定・プロパティ宣言?すればいいのか 付け足す文お願いします。
153 :Now_loading...774KB :2014/06/14(土) 15:22:55.60 ID:CtdQB8BV.net >>151 俺もそう思う。 有料でいいなら、IntelliJ IDEA
154 :Now_loading...774KB :2014/06/15(日) 05:15:53.23 ID:WUPbR+LS.net >>152 Flash CCのライブラリに突っ込んだらいいのでは
155 :Now_loading...774KB :2014/06/15(日) 05:16:36.25 ID:WUPbR+LS.net スレ間違えたわ
156 :147 :2014/06/15(日) 16:02:54.27 ID:j+PyOOeh.net >>149 >>150 >>151 >>153 レスアリガトン。FlashProという 答えがないのにワロタw
157 :Now_loading...774KB :2014/06/16(月) 22:34:30.28 ID:0gjiyq/u.net ActionScriptについての質問させてください。m( )m ttp://isvalid.jp/actionscriptLab/game/action/hiyo01.html 現在上記サイトを参考に下記スクリプトを作ってみたのですが、各移動キー入力をしている間のみアニメが作動するよう変更したいです。 onClipEvent(enterFrame) { if (Key.isDown(Key.UP)){ this.gotoAndStop("back"); this._y -= 5; } else if(Key.isDown(Key.DOWN)) { this.gotoAndStop("front"); this._y += 5; } else if(Key.isDown(Key.RIGHT)) { this.gotoAndStop("right"); this._x += 5; } else if (Key.isDown(Key.LEFT)) { this.gotoAndStop("left"); this._x -= 5; } } (右向き、左向き、後ろ向き、前向きにつきそれぞれ1つずつ(back、front、right、left)動きのあるムービークリップを作成しています。) (キー入力がない時、キャラは進行方向を向いてアニメ動作を止めたい) else文を追記したり各サイトを調べたりと色々試行錯誤してみたのですがどーーーしてもうまくいきません・・・ どなたか回答よろしくお願いします(;;)
158 :Now_loading...774KB :2014/06/16(月) 23:08:24.68 ID:1OR2BoEa.net >>157 onClipEvent(enterFrame) { if (Key.isDown(Key.UP)) { this.gotoAndStop("back"); this._y -= 5; } else if(Key.isDown(Key.DOWN)) { this.gotoAndStop("front"); this._y += 5; } else if(Key.isDown(Key.RIGHT)) { this.gotoAndStop("right"); this._x += 5; } else if (Key.isDown(Key.LEFT)){ this.gotoAndStop("left"); this._x -= 5; }else{this.gotoAndStop("front");} //ここに1行追加 if (_root.hit.hitTest(this.getBounds(_root).xMax, this._y, true)) { this._x += 5; } if (_root.hit.hitTest(getBounds(_root).xMin, this._y, true)) { this._x -= 5; } if (_root.hit.hitTest(this._x, getBounds(_root).yMax, true)) { this._y += 5; } if (_root.hit.hitTest(this._x, getBounds(_root).yMin, true)) { this._y -= 5; }}
159 :158 :2014/06/16(月) 23:10:03.75 ID:1OR2BoEa.net ↑こんな感じじゃあかんか? 正面向きさせるには色んな方法があるけど、これが一番簡単な方法。
160 :Now_loading...774KB :2014/06/17(火) 12:57:47.36 ID:vWx3uhvN.net >>159 様ありがとうございます! ・・ですがそこまでは自分も試してみました・・ >>158 のスクリプトだと停止すると常に正面(front)を向いてしまい進行方向を向いて止まらないのです・・ キー入力がない時、キャラは進行方向を向いてアニメ動作を止めたいんです 色々試してみたのですが万策つきました(;;)
154 KB
新着レスの表示
掲示板に戻る
全部
前100
次100
最新50
read.cgi ver 2014.07.20.01.SC 2014/07/20 D ★
本文 スレッドタイトル 投稿者