プレイ日記
nate NJR1432
how would you make it where a sprite wouldn't be able to go through a wall? I really need the answer!
6そうだね
プレイ済み
返信[1]
親投稿
Bobert fluffy8959
Use this "if bgget(layer,spriteX+5,spriteY,1)>0 then spriteX=spriteX-1" and change it accordingly. That line will move your sprite left after making contact wall while moving right. Make sure to put the collision inside the main loop.
1そうだね
プレイ済み
返信[2]
親投稿
Fatty Hankmaster
Was that gold user?
0そうだね
プレイ済み
返信[3]
親投稿
Nicky G.M. cooltyler1234
nate, its me, Nicky, i got banned from miiverse, are we still developing, i got smilebasic, are you still working on Modern Warfare? please go to : ''Nate And Nicky Chat Room 2'' to answer me. sorry i was gone for 9 days . :(
1そうだね
プレイ済み
返信[4]
親投稿
nate NJR1432
i'll go there :D
0そうだね
プレイ済み
返信[5]
親投稿
Bobert fluffy8959
So how about my answer...
1そうだね
プレイ済み
返信[6]
親投稿
nate NJR1432
Sorry Bobert, really dont understand :( could you just show me the code in some screenshots? :)
0そうだね
プレイ済み
返信[7]
親投稿
Bobert fluffy8959
sure
1そうだね
プレイ済み
返信[8]
親投稿
Bobert fluffy8959
There you are
1そうだね
プレイ済み
返信[9]
親投稿
nate NJR1432
Will this work for any tile of bgfill?
0そうだね
プレイ済み
返信[10]
親投稿
Bobert fluffy8959
any tile that is positioned on the designated layer
1そうだね
プレイ済み
返信[11]
親投稿
nate NJR1432
Could you give me a public code please?
0そうだね
プレイ済み
返信[12]
親投稿
Bobert fluffy8959
uh ok i guess i will make a program for background collision
1そうだね
プレイ済み
返信[13]
親投稿
nate NJR1432
Thank you! :D
0そうだね
プレイ済み