プレイ日記
*J.P.* DEV NEWPICY3
trying to mod this to have multiple enemys..
8そうだね
プレイ済み
返信[1]
親投稿
Autz sonic-HD8765
Enemies* Also, the code seems familiar for some reason.
0そうだね
プレイ済み
返信[2]
親投稿
*J.P.* DEV NEWPICY3
hah yeah its the one you made (took me like 2 hours to find where you put it) -though im guessing you already knew that- what should I do to make different enemy going from different points? see to keep them separated ill check if their hitting and if they are ill slow them down a bit to separate. (thanks for the correction too btw)
0そうだね
プレイ済み
返信[3]
親投稿
Autz sonic-HD8765
You mean, enemies appearing from different points of the screen (offscreen)? Or somekind of enemy patrol?
0そうだね
プレイ済み
返信[4]
親投稿
*J.P.* DEV NEWPICY3
yeah from different points like in splatterhouse but instead the main guys stays in the middle (he moves but instead he moves everything around him, making it look like he is moving around)
0そうだね
プレイ済み
返信[5]
親投稿
Autz sonic-HD8765
Well, just locate the enemies off the screen using coordinates like X=420 and Y=260. Also, if you want to rotate everything (including background and the position of the enemies), you will need some sine and cosine. I'm not familiar with the calculation needed to archieve the effect, but shouldn't be complicated.
0そうだね
プレイ済み
返信[6]
親投稿
*J.P.* DEV NEWPICY3
well I mean when I made a new enemy and attached him to the same variables he went to the same place but the amount or x/y different so he was following the same place just farther away, I think I may have messed up in my first test though.. I will retry it again to make sure.. also I was wondering if you had any collision engines I could use (just basic stuff) as I lost all of my
0そうだね
プレイ済み
返信[7]
親投稿
*J.P.* DEV NEWPICY3
data and stuff on an sd card that I recently lost. (I ask cause it would be nice not to have to remake it all) ive also been recently learning sine and cosine so its pretty new to me.
0そうだね
プレイ済み
返信[8]
親投稿
Autz sonic-HD8765
SmileBASIC's collisions are, well, pretty basic. Problematic if you want to make specific stuff, but is okay for most purposes. Also, the way i set it up enemy logic was doing a loop checking if specific IDs are being used. If used, i extract his position and do the calculations based on that. By the look of your code, you're trying to change the position of the enemy based on the analog stick?
0そうだね
プレイ済み
返信[9]
親投稿
*J.P.* DEV NEWPICY3
i mean bg collision as it is harder than normal collision.
0そうだね
プレイ済み