0 Members and 2 Guests are viewing this topic.
{N*4+GDB0+A}
:Lbl G:For(Θ,0,M):For(r3,0,{Θ*4+GDB0→r5+3}:If sub(GN,5+{r5},4+{r5+1}+1)=0{r5+1}+1→{r5+1}:End:End:If sub(GN,5+{r5},4+{r5+1}+1)=0:{r5+3}+A→{r5+3}:Else:0→{r5+3}:End:End:Return
:Lbl GN:r2*102+r1→r1:{r1/2+D}→r2:If r1^2:r2^16:Else:r2/16:End:Return
GN is not the problem, it return the good tile (D point appvars Data).My problem is hard to explain (at least with my bad english), I want use your phisic in a multi-player game. How can I affect every players in same time I'm moving in a tilemap ?
:Lbl G:For(?,0,M):If sub(GN,5+{?*3+GDB0},5+{?*3+GDB0+1})=0 and (getKey(4)=0:{?*3+GDB0+1}+1?{?*3+GDB0+1}:End:End:Return
:Lbl G:Θ*3+GDB0->r5:If {r5+3}>>-7:{r5+3}+1->{r5+3}:End::{r5+1}+{r5+3}->{r5+1}:While sub(GN,{r5}+5,{r5+1}+5:If {r5+3}>>0:{r5+1}-1->{r5+1}:Else:{r5+1}+1->{r5+1}:End:End::If sub(GN,{r5}+5,{r5+1}+5)=0 && getKey(4):-7->{r5+3}:End:Return