CommitLog |
This commit is contained in:
parent
d0a28aa811
commit
1a1ff2e351
6 changed files with 10 additions and 7 deletions
|
@ -69,7 +69,7 @@ for(var xx = 0; xx < CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
|
|||
<string>var chunk_total_size = CHUNK_SIZE * TILE_SIZE
|
||||
|
||||
|
||||
if(distance_to_object(obj_player) > chunk_total_size+(TILE_SIZE*5))
|
||||
if(distance_to_object(obj_player) > 1)
|
||||
{
|
||||
event_user(0);
|
||||
}
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
<kind>1</kind>
|
||||
<string>/// Every Frame Global Code.
|
||||
step_counter++;
|
||||
x = view_xview[0];
|
||||
y = view_yview[0];
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
|
|
|
@ -63,6 +63,8 @@ var chunkRelY = playY % chunk_total_size;
|
|||
var chunkX = (obj_player.x - chunkRelX);
|
||||
var chunkY = (obj_player.y - chunkRelY);
|
||||
|
||||
// Fix annoyances where % negative = positive
|
||||
|
||||
if(chunkX < 0)
|
||||
{
|
||||
chunkX -= chunk_total_size;
|
||||
|
@ -84,7 +86,7 @@ if(chunkX == 0 && (playX < 0 && playX >= chunk_total_size/
|
|||
}
|
||||
|
||||
|
||||
instance_activate_region(chunkX,chunkY,12,12,true);
|
||||
instance_activate_region(chunkX,chunkY,1,1,true);
|
||||
var chunkat = instance_position(chunkX, chunkY,obj_chunk);
|
||||
|
||||
if(chunkat == noone) // create
|
||||
|
|
Reference in a new issue