?
投稿者 : koko(FKHnni-01S2p047.ppp12.odn.ad.jp)
- 2003/01/08(Wed) 17:13
No.2301
|
|
|
|
|
スプリクトを間違わず入力したのにエラーがでます。 なぜですか?
|
Re: ?
投稿者 : しばたい(YahooBB218132060114.bbtec.net)
- 2003/01/08(Wed) 20:25
No.2302
|
|
|
|
全角のスペースが入ってませんか? もしそうで無ければ僕には分かりません。 どんなエラーが出るのかを教えてもらえば、 解決がはくなると思います。
|
Re: ?
投稿者 : koko(FKHnni-02S2p195.ppp12.odn.ad.jp)
- 2003/01/10(Fri) 18:53
No.2319
|
|
|
|
コンパイル中のエラーでセミコロンがないとか、括弧が多すぎる、不足している と出ます。括弧の数もセミコロンもあるのになぜですか?
|
Re: ?
投稿者 : hoge-(ppp02.kake.info.waseda.ac.jp)
- 2003/01/10(Fri) 19:00
No.2320
|
|
|
|
プログラムを添付していだだくとわかると思います。 お手数かけますがよろしくお願いします。
|
Re: ?
投稿者 : koko(FKHnni-02S1p241.ppp12.odn.ad.jp)
- 2003/01/11(Sat) 00:05
No.2324
|
|
|
|
extends SpriteChar; while(1) { if (getkey(39)>0 && x<($screenWidth-24)) x=x+3; if (getkey(37)>0 && x>24) x=x-3; if (getkey(38)>0 && y>24) y=y-3; if (getkey(40)>0 && y<($screenHeight-24)) y=y+3; if (getkey(32)==1){ appear(new Shot(x,y,$pat shot+0)); $mplayer.play($se_shot); }
|
Re: ?
投稿者 : koko(FKHnni-02S1p241.ppp12.odn.ad.jp)
- 2003/01/11(Sat) 00:08
No.2325
|
|
|
|
extends SpriteChar; while(1) { if (getkey(39)>0 && x<($screenWidth-24)) x=x+3; if (getkey(37)>0 && x>24) x=x-3; if (getkey(38)>0 && y>24) y=y-3; if (getkey(40)>0 && y<($screenHeight-24)) y=y+3; if (getkey(32)==1){ appear(new Shot(x,y,$pat shot+0)); $mplayer.play($se_shot); }
|
Re: ?
投稿者 : りょうた(EAOcf-148p60.ppp15.odn.ne.jp)
- 2003/01/11(Sat) 00:14
No.2326
|
|
|
|
xtends SpriteChar; while(1) { if (getkey(39)>0 && x<($screenWidth-24)) x=x+3; if (getkey(37)>0 && x>24) x=x-3; if (getkey(38)>0 && y>24) y=y-3; if (getkey(40)>0 && y<($screenHeight-24)) y=y+3; if (getkey(32)==1){ appear(new Shot(x,y,$pat shot+0)); $mplayer.play($se_shot); } } //もう一個
括弧が一つ不足しています。
|
Re: ?
投稿者 : koko(FKHnni-03S1p162.ppp12.odn.ad.jp)
- 2003/01/11(Sat) 11:41
No.2328
|
|
|
|
括弧をひとつ増やしてみたのですが、なりませんでした。 エラーのあった場所に移動してみたら、(x,t,$pat shot+0)); の所のt,と$の間に移動しました。ならない理由がわかりません
|
Re: ?
投稿者 : ナオヤン(EAOcf-303p194.ppp15.odn.ne.jp)
- 2003/01/11(Sat) 15:04
No.2329
|
|
|
|
appear(new Shot(x,y,$pat shot+0)); ここの_が足りないようです↑ 正しくはこうです appear(new Shot(x,y,$pat_shot+0));
|
|