
Is it possible at all to have a CE change into something when it is surrounded i.e. have something other than empty space on either side of it?
Moderators: Flumminator, Zomis
Just on the left and right side. Doesn't matter in Snakebite because in order to touch the rat on both sides you'll also be touching it on one other side as well, which gives the illusion of encircling it.Isn't it already possible? In the Snakebite levelset the rat CE changes when you wrap the snake around it or does that work by another way?
Can't you just check to see if empty_space is NOT around it every cycle, then turn to something if it isn't? Would it matter about turning? Even if the element is in mid-turn it would change.I think it's possible to distinguish between "change when stuck" and "change when surrounded",
hmm that's a pity. What I had in mind was an enemy CE that moves slowly toward the player and leaves walls behind it as it moves, and the player has to trick it into boxing itself in (and having it burst into diamonds when it detects it is trapped).flump wrote:It can't "self check" though, it can only work against items that move around it, so normal walls are out....This is why it worked in Snakebite.