xavierp94 wrote:I'm having some difficulty adding a freeze tile in the trunk build of teeworlds. I already added the freeze boolean value in the tick function in character.cpp and when I call it when a person shoots another it runs fine it freezes the victim like expected. Im a little confused on how the entity system works. I added my tile in the mapitem.h file and now what? Do i make my freeze value check for this to run the freeze code or what? Thanks in advance.
well you have to put the freeze tile in the right place in the entities.png
if you don';t know how enums work
just dbg_msg("freeze","%d",TILE_FREEZE); or what ever u called it this will show you a number
from the start of the entities the first tile whcih is air is 0 count from 0 to the number from the debug and place the freeze tile image i nthe entities .png use it in a map
and have fun ;-)
if you want my attention post in ddrace.info/forum
i don't come here much and here u won;t get help on modding much.
if you are looking for support for DDRace, please go to
http://DDRace.info.