プレイ日記
☆CodeZeяo☆ Code-Zero-666
How do I make bg tiles collide with sprites?
2そうだね
プレイ済み
返信[1]
親投稿
Josh josh.h7
I use BGGET to do this. ID=BGGET(Layer,X,Y[,Coordinate system flag]) IF ID==2 THEN PRINT "worked!" Hope this helped :)
2そうだね
プレイ済み
返信[2]
親投稿
☆CodeZeяo☆ Code-Zero-666
Thanks josh :)
0そうだね
プレイ済み
返信[3]
親投稿
☆CodeZeяo☆ Code-Zero-666
whats a system flag
0そうだね
プレイ済み
返信[4]
親投稿
Josh josh.h7
Its for X/Y of the background tile. 0 for coordinates as the BG coordinates(in character units) Or 1 for screen coordinates as screen coordinates(in pixel units)
0そうだね
プレイ済み
返信[5]
親投稿
☆CodeZeяo☆ Code-Zero-666
Could you explain how to make sprites and bg characters collide....... :(
0そうだね
プレイ済み
返信[6]
親投稿
Josh josh.h7
Here you go :) In code it would look like this @loop ID=BGGET(0,X,Y,1) IF ID==2 THEN X=OLD_X:Y=OLD_Y SPOFS 0,X,Y OLD_X=X:OLD_Y=Y GOTO @LOOP Change the number in the if statement to what BG tile you want it to work with :)
1そうだね
プレイ済み
返信[7]
親投稿
☆CodeZeяo☆ Code-Zero-666
Thank you so much :) You're awesome bro #Yournameisinthecredits
0そうだね
プレイ済み