Re: Project ZeC (My Zelda-esque Clone)
Reply #363 –
var name = candle_flame;
var tile;
var tw = GetTileWidth();
var th = GetTileHeight();
var tn = GetTileName(tile);
var px = GetPersonX(name);
var py = GetPersonY(name);
var pl = GetPersonLayer(name);
var dir = GetPersonDirection(MainChar);
var x;
var y;
var l;
switch (dir) {
case "north":
x = px;
y = py - 2;
l = pl;
tile = GetTile(x, y, l);
if (tn = "burnable_bush") //tile name to be changed later
{
if (py == y)
{
}
}
break;
I am not currently in front of a computer to test this on... Writing the code on my mobile phone. Looking at how this code is written so far, I'm wondering if it will produce an error on var tn due to the fact that var tile technically isn't being define until the switch (dir)?