[request] how to refresh the map?

Joined
Dec 27, 2012
Messages
145
Reaction score
7
First Language
German, English
Primarily Uses
Other
hi there..


following problem:


I filled my whole map with 1 roof autotile. and dig holes into it via $game_map.data[x,y,layer], by filling the player (acts as cursor) with floor, and y-1 with a wall autotile.


problem now:


the surrounding autotiles and the current created are not updated to fit each other.


so my question is:


can someone write me a script to update the surrounding autotiles around the players xy and xy-1 (not the whole map, cause this will make the game stop for a moment).


hoping for an answer :)


Ps.: Don´t forget my other request: How to refresh the Shadowmap?
 
Last edited by a moderator:
Joined
Dec 27, 2012
Messages
145
Reaction score
7
First Language
German, English
Primarily Uses
Other
cool - but it´s not working correctly..


i use the "$game_map.update_all_autotiles".


To show the problem better, i made this picture show:


http://www.imagesload.net/img/problem4.png

It only takes effect on each 2nd tile.. and ignore the above/below/left/right again..:


 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I don't understand how you expect it to look. The results look as I expect.


Does it work correctly when you do it manually in the editor? Does it do anything different than what the script is doing?
 
Last edited by a moderator:
Joined
Dec 27, 2012
Messages
145
Reaction score
7
First Language
German, English
Primarily Uses
Other
yes, it's working in the editor - but it should work at runtime!

the problem is, in the last picture of my pictureshow, i replaced the roof tile with floor tile, and when updating the autotiles, the roof tile is there again.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top