Thread
:
tiles[] and tilelayers issue
View Single Post
#
1
10-07-2010, 11:22 PM
MrOmega
One More Time
Join Date: Aug 2010
Location: TN, USA
Posts: 631
tiles[] and tilelayers issue
Just noticed this.
PHP Code:
player
.
level
.
tilelayers
[
0
].
tiles
[(
player
.
x
%
64
) +
1.5
, (
player
.
y
%
64
) +
2
];
Now when your're on a gmap and the player's x or y is in between 0 and 2, it will return -1 regardless.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
MrOmega
View Public Profile
View GraalOnline Profile
Find all posts by MrOmega