For instance I want to create a portal for jumpgate but it's putting a black box around it like we get around stairs.
So is there a way to add objects and set the alpha like other objects are set? (Say swords, runes, and what not.)
Here's the code I'm using for reference.
Code: Select all
local e = Object.new{
old_feat = game.level.map(game.player.x, game.player.y, Map.TERRAIN),
name = "jumpgate two",
display = '&', color=colors.PURPLE,
always_remember = true,
block_move = false,
block_sight = false,
canAct = false,
act = function(self)
self:useEnergy()
local t = game.player:getTalentFromId(game.player.T_JUMPGATE)
if game.player:isTalentCoolingDown(t) then
print("[[gate]] removed ", gate_x, " :: ", gate_y)
game.level.map(gate_x, gate_y, engine.Map.TERRAIN, self.old_feat)
game.level:removeEntity(self)
game.level.map:redisplay()
end
end,
summoner_gain_exp = true,
summoner = self,
}