プレイ日記
G∞dGameGod BrodyJefferson
Question: Is there a command or a way for sprite to BG collision detection? (Like SPCOL, but for BG sprites)
4そうだね
プレイ済み
返信[1]
親投稿
BGGET(layer, x/16, y/16)
1そうだね
プレイ済み
返信[2]
親投稿
G∞dGameGod BrodyJefferson
Would it be possible if you could explain in detail an example of sprite to BG collision? I'm totally lost. (Sorry if I sound like a noob, but I am one so...)
0そうだね
プレイ済み
返信[3]
親投稿
I'm not very good at explaining things but I'll show you an example.
0そうだね
プレイ済み
返信[4]
親投稿
*J.P.*[P]£ aj2003aj
if all fails i can give you my code i use for bgcollision, see theres two types, 1st is just on a single screen bg, 2nd is with using bgofs which is harder but worth it still.
0そうだね
プレイ済み
返信[5]
親投稿
Sorry for the delay. I was a bit busy. Anyway, here's a screenshot of a simple example.
0そうだね
プレイ済み
返信[6]
親投稿
G∞dGameGod BrodyJefferson
That's super cool...uh...I think I explained something wrong. I trying to make it so that when the red hair guy, touches that BG ladder, there will be collision detection.
0そうだね
プレイ済み
返信[7]
親投稿
G∞dGameGod BrodyJefferson
*I'm
0そうだね
プレイ済み
返信[8]
親投稿
X and Y are equal to the top left corner of the character. IF BGGET(0,X/16+.5,Y/16+.5) THEN (touching ladder)
0そうだね
プレイ済み
返信[9]
親投稿
*J.P.*[P]£ aj2003aj
so you just need to make it collide then make a function that allows you to go up and down when touching it..?
0そうだね
プレイ済み
返信[10]
親投稿
G∞dGameGod BrodyJefferson
Thanks for your help Nathaniel, I figured it out with the help of a friend, but thanks again!
1そうだね
プレイ済み