トピック
受付中
shurgurdur ManlyPinkPony

collision imitation?

Okay, so essentially I have drawn a text image from an array so if the array val = 0 it prints a bit of text at a location determined by the value of a for loop + a coordinate. Basically I want to know if you can make it so the value of my dudes x,y coordinates cant = the coordinates at the location a wall was printed. plz ignore the green code i commented out
0そうだね
プレイ済み
返信[1]
親投稿
shurgurdur ManlyPinkPony
here is where all the text drawing happens
0そうだね
プレイ済み
返信[2]
親投稿
shurgurdur ManlyPinkPony
and here at the bottom is my buggy collision immitation. it makes it so my dude can still walk into the wall but it kicks him back a space every vsync tick
0そうだね
プレイ済み
返信[3]
親投稿
shurgurdur ManlyPinkPony
can anyone help?
0そうだね
プレイ済み
返信[4]
親投稿
Hanzo rzsense
Replace every AND with && in line 57, 73, 74, 75 and 76.
1そうだね
未プレイ
返信[5]
親投稿
shurgurdur ManlyPinkPony
oh thats a handy shortcut! it didnt change anything though =/ basically whenever my dude runs into a wall he replaces the tile then gets pushed back again. i want it so he can move to the location of that tile at all. the lication of the tiles i dont want the guy to step on is P1 and P2 in @gosub @h1 when the value in arr1==0. the above pic is what I want my dude not to do
0そうだね
プレイ済み
返信[6]
親投稿
shurgurdur ManlyPinkPony
sorry i meant in @house not @h1. and i meant i want it so my dude CANT go to the locations of P1 and P2
0そうだね
プレイ済み
返信[7]
親投稿
Hanzo rzsense
Do you want him not to overlap with tiles? Ok I'll try resolving this issue again. Could you wait? By the way, your screenshots have lost line 30 to 43. Could you show me the lost part?
0そうだね
未プレイ
返信[8]
親投稿
Hanzo rzsense
I've built a sample program. Could you download XELE38HE and refer to EX_TXTCOL in the downloaded folder? Please download it asap because I'll keep it on the cloud server temporarily.
0そうだね
未プレイ
返信[9]
親投稿
Drift Dr1fter
I think its because you used if a=a then move -1 Can't remember the string name, sorry. it looks like you inverted the variable.
0そうだね
未プレイ
返信[10]
親投稿
Kashiwa walzenwalter
Looks like MS_DOS
0そうだね
未プレイ