プレイ日記
Ep17 EmPx17
How do i make an AI? i want the bottle to follow the player but how?
3そうだね
プレイ済み
返信[1]
親投稿
Ep17 EmPx17
Here is the code for the bottle
0そうだね
プレイ済み
返信[2]
親投稿
Ep17 EmPx17
I forgot the screenshot...
0そうだね
プレイ済み
返信[3]
親投稿
Ep17 EmPx17
The main thing preventing me from finishing this game is the ai but i have no idea how to make one.
0そうだね
プレイ済み
返信[4]
親投稿
dfrost 4311df
note:x and y are player positions x2 and y2 are bottle positions i dont use spworld yet, so i dont know if its in pixel or block units use this: IF DIST>3 THEN IF X2<X THEN INC X2 IF X2>X THEN DEC X2 IF Y2<Y THEN INC Y2 IF Y2>Y THEN DEC Y2 ENDIF
0そうだね
プレイ済み
返信[5]
親投稿
ЩMr.Mo14 mr.mo14
there is a better one on sbs, It moves as a player would with the circle pad. look in 'resources'
0そうだね
プレイ済み