【2D】ゲーム作成ツールGameMaker part4【マンセー】at GAMEDEV【2D】ゲーム作成ツールGameMaker part4【マンセー】 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト718:712 10/03/10 17:45:41 SAQuwhgU >>715 解説ありがとうございました。 ググっても見ようと思います。 719:名前は開発中のものです。 10/03/10 20:36:21 wfB1/ttt >>717 三行目に読点がないから具体的にはわからないけど instance_nearest(x,y,obj)とかで索敵して追従するインスタンスidを取得 move_towards_point(x,y,sp)なんかでそのインスタンスに向かうように移動させたらいいんじゃないか 720:名前は開発中のものです。 10/03/11 18:24:32 AQjiT5D5 壁にぶつかったら跳ね返ってバウンドするのを解決する方法がわからない。 FRICTIONをHSPEEDから引いてやる?のかと思ったが、それもちょっと違うみたい。 誰か俺を救ってくれ。 Step Event: set the friction to 1 if relative position (hspeed,0) gives a collision with Only solid objects if hspeed is smaller than 0 move in direction 0 at most -hspeed till a contact with solid objects if hspeed is larger than 0 move in direction 180 at most hspeed till a contact with solid objects Keyboard Event for <Left> Key: set the horizontal speed to -5 Keyboard Event for <Right> Key: set the horizontal speed to 5 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch